Problems when updating MySQL 5.0 to 5.5 - mysql

I have a db hosted at Godaddy.
I've made a backup of my MySQL 5.0 database.
I deleted the db.
I've made a new db which uses MySQL 5.5
with the same password as used before.
Now I can't connect, and am getting this error message:
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

In Godaddy's database details menu the hostname is incorrect. I had to get into phpmyadmin and copy the IP address shown there. Using that when connecting via PHP makes everything okay.

Related

Can't connect mysql workbench to mysql even though I can connect normally through the terminal

I recently installed mysql and mysql workbench on my manjaro machine. As for mysql itself, it works perfectly. I can start the service, connect using terminal and do my usual work without any trouble.
The problem is that mysql workbench can't, for the life of me, connect to mysql. Always returning the same your connection attempt failed for user 'root' to the mysql server at 127.0.0.1:3306: SSL connection error: SSL is required but the server doesn't support it error.
Even when I try the Rescan servers option on mysql workbench it returns No servers were found.

Drupal 7 - Error when updating the database

I just started with drupal 7. After installation process, I want to include another database (new database has the same name, and it was used on another drupal project). Together with the database I have replaced sites folder.
The problem is, after I import a new database, on refresh I am redirected to install drupal. When I type database info I get error:
Failed to connect to your database server. The server reports the following message: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2).
Any help is appreciated!
Denis
If you database server is on the same machine as the web server, and you were using localhost as the address, try using 127.0.0.1 instead.

access phpmyadmin extern with mysql workbrench (10061)

Goodday guys,
I've a ubuntu WEMP server and I also installed phpmyadmin. I can access my phpmyadmin by typing the IP adress or domainname and then adding /phpmyadmin to it.
Now I want to connect it with MySQL workbrench. I already added a username in phpmyadmin with martijn#% and I updated the config.php file by phpmyadmin to:
$cfg['Servers'][$i]['host'] = '95.85.9.114';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['passwd'] = "PRIVATE:)"
MYSQL WORKBRENCH ERROR 10061 ERROR PNG
Can someone help me with this? I'm a little bit of a newby in the server world. I always payed for a ready server with everything installed easy to configure. But now I've my own server
Make yourself clear what a client/server architecture means. MySQL is a server, phpMyAdmin and MySQL Workbench are both clients. How can two clients connect to each other in such a scenario? You cannot do that. You can only connect MySQL Workbench to your MySQL server (as you do with phpMyAdmin). Use the same credentials for connection unless MySQL Workbench doesn't run on the same machine as the web server (where phpMyAdmin is running on). In that case you have to use the IP address of the machine MySQL is running on.

Phpmyadmin cannot connect to mysql: 2054 - Connecting to 3.22, 3.23 & 4.0 servers is not supported

I've installed new XAMPP, version 1.8.1, it works, but I cannot connect from phpmyadmin to database. Message in error said that I had old mysql database. I downloaded version 5.5 and installed it and I get still this same error. In XAMPP apacha and mysql are started. When I installed mysql I was created password for root and I didn't created second user. Maybe samewhere in phpmyadmin configuration I should change password for the root too ?
Error:
Error
MySQL said: Documentation
2054 - Connecting to 3.22, 3.23 & 4.0 servers is not supported
Connection for controluser as defined in your configuration failed.
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
Thanks
change to new server of mysql or change the version of phpmyadmin

in MySQL Workbench, how do I create a mysql server on my localhost?

In this question I am using Windows 7 32-bit, and MySQL Workbench 5.2.35 CE Rev 7915
I'm trying to create and connect to a mysql database on my localhost. It seems obvious. I should start up Workbench, go to Server Administration -> New Server Instance, tick the 'localhost' radio button and follow the wizard. But I get to the 'Test DB Connection' step and it fails to 'Open Database Connection'. The Message Log says:
Connecting to MySQL server localhost...
Can't connect to MySQL server on '127.0.0.1' (10061)
Now, my question is this: Am I supposed to have already installed and started up a MySQL server on my localhost with some tool or program other than Workbench? It seems like this wizard is just supposed to create a connection to an already existing mysql server, but I don't know how to create a server on my localhost. I hoped Workbench would provide a way to do all of this: Create MySQL server, start it up, connect to it, query it, etc. but it seems like maybe it can only connect to already existing servers.
What should I do to create a MySQL server on my local machine and connect to it with MySQL Workbench?
You can't. MySQL Server and MySQL Workbench are separate products, as Workbench is a GUI to the Server. To install both, download "MySQL Installer for Windows" and (by default) it will install both (and other) MySQL products.