By APPOcean
I use Ubuntu 14.04.4 x64 for App server (IP : 10.130.16.27) and Ubuntu 14.04.4 x64 installed Mysql server 5.7.13 (IP : 10.130.40.80)
then I try to connect from App server to Mysql server with command
root@GatewayServer:~# mysql -u gps -h 10.130.40.80
and I got error below system show self ip not remote ip
Warning: Using a password on the command line interface can be insecure. ERROR 1045 (28000): Access denied for user ‘gps’@‘10.130.16.27’ (using password: YES) root@GatewayServer:~#
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
You need to grant user gps access when connecting from 10.130.16.27. You can do that by running the following command in MySQL. You can also replace 10.130.16.27 with % to allow all hosts.
GRANT ALL PRIVILEGES ON *.* TO 'gps'@'10.130.16.27' IDENTIFIED BY 'password_for_user_gps' WITH GRANT OPTION;
FLUSH PRIVILEGES;
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.