![]() If you can in fact log in, we can at least rule out a credentials issue. Mysql -h localhost -u jking -pmypassword (no space between -p and mypassword) Just to make sure, could you confirm that the mysql service is running on the same machine as your application?ĭo you have SSH access to your server? If yes, can you log in and then try to log into it by typing My first (relatively educated) guess would be that the hostname should be just 'localhost' instead of localhost:/db01/var/lib/mysql/mysql.sock ![]() ![]() This is my current database connection configuration: I have a simple controller that echos Hello world and then tries to $this->load->database() This fails with connection refused error. I have tried many suggestions found through googling, but so far nothing works. Everything works fine until I encounter a part of the tutorial that requires interface to mysql. (06-26-2018, 03:36 PM)jameshking Wrote: I am a beginner with CI and I am working my way through the tutorials on your site as well as some others I found through googling. 'hostname' => 'localhost:/db01/var/lib/mysql/mysql.sock',Īs you can see, the location of the database has been moved on this particular server. ![]() I am a beginner with CI and I am working my way through the tutorials on your site as well as some others I found through googling. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |