mysql don't connect without running XAMPP mysql - mysql

I downloaded XAMPP before to create database of my application with it but when I tried to delete it and use mysql server it didn't connect to server till I downloaded XAMPP again and connect to mysql in XAMPP so mysql server connect successfully, now I want to use mysql server without XAMPP what can I do for that ?

You need to download MySql and run the same as a service.
Download it from here https://www.mysql.com/downloads.
Now after installing it, you can run Mysql as service just by following the below steps:
Press windows + R.
Write services.msc
Find the mysql service in the popup and select the same.
On selecting it, you can see few options appearing on the left panel. Click no start service.
You will be able to connect to mysql then.

Related

MySQL Workbench Server startup

I am having trouble starting up a server through MySQL Workbench. From the navigator pane on the left side of Instance -> Start/Shutdown, I tried the "Start Server" button at which point the server will look like it will try to start. The workbench will get hung up at this point and indefinitely not respond with a "thinking" mouse icon while in the workbench app.
This is my first time learning to use MySQL workbench, which I want to say that when I initially installed MySQL Workbench a server did start after installation and worked fine. It was after restarting my computer and checking on the workbench the next day (today) that the server no longer runs. I'm not seeing any MySQL references in my Services (services.msc) that might relate to starting up but that might also be because I did not install as a Windows Service. My original troubleshooting was in trying to establish a connection, which I realized it was because the server wasn't running. Could someone help me understand why the server isn't starting? Or would it be recommended to install the workbench as a Windows Service to avoid the issue I'm having?
Screenshot of the MySQL Workbench window where the application will get hung up when starting the server.
Current setup: Personal workstation, Windows 10 (64 bit), MySQL Workbench 8.0 (version 8.0.29 build 1751076 CE 64 bits). I do not plan on running the server 24/7 since this is my personal workstation.
Right-click on My Computer
Select Manage
Select Services under Servies and applications
Find MySQL among the services and open it.
Choose Automatic as a start option.
Click on start.
Press Apply & OK then exit.
It is not necessary, but I still recommend restarting PC.
The solution below fixed my issue. I definitely recommend installing MySQL Server as a windows service and making sure uncheck mark the box that says to start when Windows starts unless you plan to have your computer as a dedicated server.
Source from #Lazycoder_007
This solution uses the window's mysql installer which you have used to
install your MySQL.
Start your windows mysql installer. For me it was
"mysql-installer-community-8.0.20.0"
Then remove/uninstall the SQL
Server and remove all configurations
Manually delete the SQL Server
folder from "C:\Program Files\MySQL\MySQL Server 8.0."
Start your
mysql installer again and install the SQL Server again
You can check
now that the MySqL Server has started.

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.

Connect xampp localhost from Mariadb to MySQL database

I downloaded the ff: Mysql Workbench, Mysql Community Server and Xampp (latest).
I found out that recent xampp version is no longer using MySQL as database server instead it uses MariaDB. Apparently, MySQL workbench is not compatible with MariaDB.
There was a suggestion in previous forum to turnoff MariaDB and turn on MySQL Server on and it will automatically connect to xampp localhost. Which it did not, rather it shows an error message
Please advise what files needs to be configured to connect my xampp localhost and my manage server control user to mysql database server in OS X (macbook pro).
I just got an answer from XAMPP developers that they build and test the XAMPP installers with bundled components and try to configure it to use external services will be error prone.

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.

Does MySQLWorkbench include MySQL server?

My aim is to create some simple tables in MySQL via a GUI similar to SQL Server Management Studio. In order to do this I found and installed MySQL Workbench.
I am following this tutorial:
http://dev.mysql.com/doc/workbench/en/wb-getting-started-tutorial-admin.html
but on step 5 I get an error message saying cannot connect to MySQL server.
Am I supposed to have something else installed before I can use MySQL Workbench? I have assumed Workbench includes everything I need....
You will need to install MySQL yourself. You can download it individually or using a tool like WAMPserver which makes the process of installing and configuring ridiculously easy.
You will need a server. SO you can goto start->mysql folder->mysql Installer.
After that a Mysql Installer form will open. Click on ADD. You will see a list of
products. Select Server(x86 or x64) based on your machine and follow instructions
provided.Once you have downloaded, set admin password. Now you can create your instance in workbench. If server is not running, run services.msc and start MySQL
service.