Mysql workbench loses connection after restarting computer - mysql

I have installed Mysql server and mysql workbench and have successfully used mysql workbench to work with my databases. I used it and have since then closed the program and shut off my computer. Now when I click on my connection, it shows a server status screen and says 'no connection'. I get error message 10061 could not connect server may not be running. This is the second time this happened to me and I find that reinstalling mysql fixes this. The problem is I cannot reinstall every time I need to use mysql workbench. What can I do to solve this?

Related

Installed Mysql, Wordpress, and WAMP server. Create database failed to exist even though phpMyAdmin showed it created

I installed MySql community server on Windows 10 Home. Then, I installed WAMP server 64 to setup an Apache php server. Finally, I installed Wordpress where my problem arose. All products are current releases just downloaded.
During installation of Wordpress, phpMyAdmin says the database was created and it shows on the left panel. The name is wordpress_db. MySQL Query Workbench doesn't find it with a SQL show databases command. Wordpress gave an error "not found". I finally manually created the db in MySQL Workbench, rebooted, and after restarting Wordpress on the Apache server created I was able to finish the installation. There were no errors showing with the db create from phpMyAdmin and it allowed me to set privileges for users without a problem. I can't explain what happened and don't particularly like mysteries that just go away. They always com back to haunt you!
Can anyone shed any light on what happened during the installation and db_create?
Thanks in advance for anyone who looks at this.
Update
I uninstalled and reinstalled and the problems went away. Now I am running a MySQL instance that isn't distributed directly from the vendor and I lost some of the things that come with MySQLcommunity server.
One thing to note - the installation docs don't tell you to change the port on MariaDB from 3306 to something else using phpMyAdmin when you are using MySql. Once i changed the port, the server instances instantly popped up green. They were initially orange.
thanks

MySQL server flicking on and off

I have installed MYSQL with homebrew and am accessing it via the client in system preferences. When I click "Start MYSQL Server" the only installed instance MySQL 8.0.14 goes from red to green becoming active, but only remains active for a few seconds before flicking back to inactive. This repeats continuously.
Additionally, within Sequel Pro I am able to create new databases and update them with the Query terminal however when trying to load my existing databases from my machine, the client shows an unexpected error message of and becomes completely unresponsive.
I have tried uninstalling/reinstalling to no avail. s
Starting MySQL from the command line with
mysql.server start
Returns an error message of
2019-03-08T17:38:36.6NZ mysqld_safe A mysqld process already exists
I have tried killing all processes (MacOS Can't start MySQL Server) but the error remains.
Apologies if I am missing a glaringly onvious mistake, still quite new to MySQL!
Thanks in advance

MySQL server not started after installed Apache Cassandra

I am trying to work with multiple database with single project. I have successfully integrated my project with MySQL database, but after installing Cassandra (by DataStax 3.9.0) I face problem to connect with MySQL database.
I got error
can't connect to MySQL server on '127.0.0.1' (10061)
I have reverted the process and uninstalled Cassandra but there are same issue at time of starting MySQL. Also in the Services TAB in Control Panel, I do not get any option to start MYSQL Service Manually and the Startup type is "Automatic".
Please check if mysql database is already running or not.If running you can stop start with the database you want to work.

How do I Respond to MySQL Workbench's "MySQL server has gone away"?

I'm using MySQL Workbench 6.3 on both Mac OS X and Centos 7. After a long period of inactivity, queries report "Error Code 2006: MySQL server has gone away"
I don't expect that leaving MySQL Workbench to maintain a connection to the server overnight, especially if I've let my computer go to sleep.
I do expect that there's a button or menu item somewhere that lets me reconnect again, WITHOUT having to copy the dozens or hundreds of lines of SQL I may have written in my current session.
I've been warned that I let my connection timeout, MySQL Workbench, now is there a way to please please just reconnect?
Try Query -> Reconnect to server.
http://prntscr.com/auqdru

Another mysql server is already running error on OS X

I have installed XAMPP on OS X and I want to start MySQL but it's giving an error:
XAMPP's MySQL can not start while another mysql server is running. Please turn it off and try again.
How can I handle this?
Maybe you should turn off the other MySQL server and try again.
You could open activity monitor (for example, open spotlight (command-space) and enter "activity monitor", hit enter), then type mysql in the search field, select the MySQL server process, and hit the 'x' in the upper left to terminate it.
Otherwise you will need to investigate why a MySQL server is already running.
It is not possible to start a MySQL server through XAMPP when you have a MySQL server that is already running in the local machine.To start the MySQL server through XAMPP, you have to stop the server running in local machine.