About MySQL connection error 1130

Source: Internet
Author: User
Keywords mysql php

There is a project on the server, know the server address, but also know the MySQL account password, but when the connection error

Online has searched the relevant information, the pit father is I do not understand to the Linux, boarded the server after the command to run MySQL always error-bash:commond not found, I have CD to MySQL installation directory under the Bin directory, or will report this error. This is also a phpstudy integration environment, feel that the files in the installation directory are a bit different, the bin is directly under the file, there is no PHP version of the file name folder, good annoying. How can this be solved? Urgent and urgent!

Reply content:

There is a project on the server, know the server address, but also know the MySQL account password, but when the connection error

Online has searched the relevant information, the pit father is I do not understand to the Linux, boarded the server after the command to run MySQL always error-bash:commond not found, I have CD to MySQL installation directory under the Bin directory, or will report this error. This is also a phpstudy integration environment, feel that the files in the installation directory are a bit different, the bin is directly under the file, there is no PHP version of the file name folder, good annoying. How can this be solved? Urgent and urgent!

If your client IP is constantly changing, create a host named % user that represents any client host address.

Grant all permissions to all databases to the'username'@'%'

grant all privileges on *.* to 'username'@'%';

MySQL on the server does not open for public access support, the specific can be Baidu MySQL remote connection

May be a permissions issue!

Running MySQL under command after boarding the server is always an error-bash:commond not found
You can add this system variable to the/etc/profile file in the MySQL bin directory.

vim /etc/profilePATH=$PATH:/usr/local/mysql/bin export PATHsource /etc/profile
  • Related Article

    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.