MySQL configuration for Linux under XAMPP

Source: Internet
Author: User

After installing the XAMPP, the terminal command line operation will prompt: Command notfound

This is because MySQL is not configured correctly.

When you enter a command, the system will look for the input command in the/usr/bin location, and if you do not bring the command to this location, you will be prompted to "command cannot be found." As long as the absolute position of the tool is introduced into the/usr/bin, all the problems will be solved, as long as we carry out this command (i xampp in the OPT directory):

sudo ln-s/opt/lampp/bin/mysql/usr/bin

If MySQL is already running and there is an SQL script file, you can execute the script by using a source command or /. command:

<pre name= "code" class= "CPP" >mysql> source file_name


MySQL configuration for Linux under XAMPP

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.