Database connection error when live on server (SOLVED) |
I configure a VirtualBox VM for my server running UBUNTU (LAMP setup) and now after putting my project on the server it fails to connect to the database.
Error PHP Code: mysqli::real_connect(): (HY000/1045): Access denied for user 'usr'@'ip' (using password: YES) my application/config/database config PHP Code: $active_group = 'default'; Pure PHP connection that works on the server PHP Code: ("127.0.0.1", "my_user", "my_password", "my_db"
The error message is pretty clear, you do connect to the MySQL server but it says: Access denied for user 'usr'@'ip' (using password: YES).
So either the username / password combination is false or that user is bound to a specific (different) IP adres. PS, never post real passwords on a public forum, even if that database is on a local network.
(07-02-2017, 01:51 PM)Diederik Wrote: The error message is pretty clear, you do connect to the MySQL server but it says: Access denied for user 'usr'@'ip' (using password: YES). I got it working thanks, after posting this thread I realized it and fix it but I never got to say it here xD
Please add SOLVED to the subject line
On the package it said needs Windows 7 or better. So I installed Linux.
|
Welcome Guest, Not a member yet? Register Sign In |