whisper1967 Posted May 10, 2013 Share Posted May 10, 2013 I feel like giving up, I have created my site locally for speed and testing purposes, everything is working, so I have uploaded it all to my server, but now I get an error messge: Link to database cannot be established: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (13) I tried creting a php file with the following lines: $mysqli = new mysqli("localhost", "my_user", "my_password", "my_database"); as someone suggested to another user for a similar problem and trying to access that via the browser, and the browser returns the same line of text. I'm afraid I don't know sql at all so I don't know if that is what its supposed to do or not, eitherway I'm stuck, can anyone help me please? Thanks in advance Link to comment Share on other sites More sharing options...
PascalVG Posted May 16, 2013 Share Posted May 16, 2013 Hi Whisper, Did you try the possible solutions as given in this link? http://www.magentocommerce.com/boards/viewthread/7901/ My 2 cents, pascal Link to comment Share on other sites More sharing options...
benjamin utterback Posted May 16, 2013 Share Posted May 16, 2013 Hi whisper1967, have you contacted your hosting provider. It may be an issue on their side. Who is hosting your website? Link to comment Share on other sites More sharing options...
whisper1967 Posted May 23, 2013 Author Share Posted May 23, 2013 Thanks, I got it to work in the end. To tired and too many places where I could have made a mistake, a fresh day and all was good. Thankyou Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now