Jump to content

Cannot connect to mysql from command line, locally


hippypink

Recommended Posts

also getting errors in my application: Lost connection to MySQL server during query

I cannot login to phpmyadmin, nor mysql from the command line.

restarting mysql and db server no help.  it occurs for multiple databases as well, each with different username and password.
Link to comment
Share on other sites

oh, one mroe thing about this, the database is running on a separate database server.  I have many different applications.  I also have two different databases setup (on different ports).  Neither of them work. 

IF I copy over a database from the database server and run it on the same box as the web application, then it works. 

This problem appeared all of a sudden, after several years of this setup arrangement.
Link to comment
Share on other sites

[quote author=hippypink link=topic=123695.msg511633#msg511633 date=1169580946]
oh, one mroe thing about this, the database is running on a separate database server.  I have many different applications.  I also have two different databases setup (on different ports).  Neither of them work. 

IF I copy over a database from the database server and run it on the same box as the web application, then it works. 

This problem appeared all of a sudden, after several years of this setup arrangement.
[/quote]
If you're willing to pay, pay your admin (or hire one).  Otherwise, it seems like the connection was established, then timed out... how are these boxes separated?
Link to comment
Share on other sites

Thats the thing, my admin is stumped on this one, and I don't know how to outsource/hire another for this one issue.  Where do I go/start?  Are you for hire on a support issue like this?

The boxes are all on the same subnet mask, all behind the same switch.

Does this answer your question ?

After re-evaluation, I believe only  the one mysql server was having problems (not sure though).  The mysql installation having the problem was for one software application--but it doesnt make sense that I could not connect via command prompt (shell)--not unless someone changed the password to the db (e.g. hacker, or, one of our guys), or mysql/password file was corrupt.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.