Is it possible to run MySQL not as a service - mysql

I need to get WAMP stack running on a Windows 7 computer with no admin access.
I managed to get Apache running not as a service and I'm trying to get MySQL working now. I've tried SQLite, but it crashes on the Drupal install.
Is there a way to run MySQL not as a service?
I found this explanation for getting it running without installation, but get the error:
mysqld: Could not create or access the registry key needed for the MySQL
application to log to the Windows EventLog. Run the application with sufficient
privileges once to create the key, add the key manually, or turn off logging
for that application
I'm aware there is another self-answered question on here, but the solution isn't actually what I need.

Sometimes, there is already a MySQL server running on your machine. Try the following steps:
Type Services in search box
Find MySQL service and right click it to stop it.
Try to connect your server in XAMPP or wampp.

Related

How to connect to a MySQL db via a client on Mac?

I'm used to MS SQL and Management Studio on Windows but got MacBook recently, and appereantly, I don't have enough RAM for the tasks I need to do on my Parallels Desktop.
Thus, I installed MySQL on my Mac and been able to create a database via MySQL Workbench.
I can see the database exists when I type in
SHOW DATABASES;
However, whenever I want to connect to the localhost server via a client (Sequel Pro), using the same connection informations as I used to Workbench, I get this error message:
MySQL said: Authentication plugin 'caching_sha2_password' cannot be
loaded: dlopen(/usr/local/lib/plugin/caching_sha2_password.so,
0x0002): tried: '/usr/local/lib/plugin/caching_sha2_password.so' (no
such file)
Help would be appreciated.
Thanks!
I'd strongly suggest you to use Docker to run Databases locally instead of installing them.
This gives you lots of advantages (eg: only run it when you need it) and moreover there are plenty of documents around that tells you how to quickly run and connect to it.
For example --> https://dbschema.com/2020/03/31/how-to-run-mysql-in-docker/ (the real first result found duckduckgoing it :))

During Install I can not create users, and other issues with install

Good Morning Stack Exchange!
Trying to get mysql installed on my personal computer and I've run into a few issues.
I can not create a user during install, If I try to add a user during install it fails on the create users step. So I figure I will just add the users after install via sql workbench, which brings me to number 2.
After installing mysql server, attempting to connect to the server with mysql workbench just asks me for the password endlessly until it locks me out. I know the password I'm using is correct because when I modify the mysql server instance via the installer it asks for the current root password, adn the password works there.
After install, if I stop the mysql service from running mysql workbench loads without issue.
Mysql installer can not stop the mysql service, to modify an install I have to manually stop the service.
The common thread to all of these issues is the windows service for mysql.
Troubleshooting steps
verified port 3306 was open in the firewall
disable firewall entirely
Turned off anti-virus
uninstalled anti-virus
Multiple restarts of both the service and computer
Uninstalled all my sql components and reinstalled (multiple times)
changed the root password via command shell (via This MySQL guide for recovering the root password)
Downloaded the installer again in case there was a corruption of my original file.
So I'm pretty stumped, I've been at this for two days and I don't feel any closer to a solution.
Configuration info:
windows 10 (intel core i-5, 16 gigs of ram, 96 gigs of open space on SSD)
MYSql Installer version 8.0.13.0
The first thing I would check is the logs.
However, given the info you provided it sounds like default settings are there but no root#localhost user password or root#127.0.0.1.
Check the my.ini existence for details and logs.
You may have to follow this to create the config file if it doesn’t exist - follow the link below.
https://dba.stackexchange.com/questions/21835/mysql-workbench-asking-for-password
Error log location in windows:
The error log is located in the data directory specified in your my.ini file. The default data directory location is C:\Program Files\MySQL\MySQL Server......

Wamp Server is always orange due to an error in MySQL service

My Wamp Server was working perfectly well until yesterday when I started the mysqld from the command line and went on to import a .sql file from the MySQL console. The WAMP icon stays orange all the time. There is no issue with the Apache service but the issue is with the MySQL service. When I looked for wampmysqld service on services.msc, it doesn't show any. But when I run mysqld from the command line, it works fine.
Itried several methods but none of them worked. I also tried installing Wamp Server 2 as an addon but it didn't work for me, and now I can't select the version of MySQL even.
Can anyone please help me out?
It sounds like you have 2 MYSQL Servers running.
Check the Event Viewer for messages from MYSQL.
Check the services, wampservers MYSQL is called wampmysqld64, if you have another running it will probably be called MYSQL
If this is the case, you will either have to uninstall the other MYSQL or at least Stop it in the services snapin, or disable it, if you are sure it was a mistake uninstall whatever brought this other MYSQL to your party
What did you install recently, some apps bring their own mysql instance for example some installs of MySQL Workbench will install an instance if you pick the full with everything version.

Error 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)

Please don't post this question as duplicate. I am trying to configure mysql for about 3 weeks now. Someone should really help me.
I recently installed MySQL 5.1 in a Lenovo laptop to do my project. The laptop is running on Windows 8.
The installation was fine but when I tried to configure MySQL it worked till the last page.
There am getting Error Nr 2003.
I tried it through the command prompt, through services in the control panel. But the problem is that the mysql service is not starting at all. Why it is not starting ? What will be blocking it from starting ?
First you need to start mysql service it is the problem for this above
error.
In case you cant start mysql service means you need to install mysql service.
Steps for install mysql service
Step 1: open command prompt and go to the mysql installed location (for example c:\Program Fiels\MYSQL\Mysql Server5.0\bin\)
Step 2: mysql --install
Step 3: start mysql service using the command NET START MYSQL command
then connect mysql using username and password.
Assuming the service is already running and you still get this error connecting to the localhost using the mysql client, then make sure you have an entry for "localhost" in your hosts file. This was the case I experienced.
I resolved this situation following the following process. After adding the MySQL path to the environment, I kept invoking the program and then checking Event Viewer in the Application Log for MySQL errors that referenced old commands in the ini file. After removing them, what was hanging me up was that the installer was looking for errmsg.sys in a folder that didn't exist, \bin\share. Those folders DO exist, but on the same level, not nested. So I added the folder share to bin and copied errmsg.sys from share to the new nested share, and it worked.
Now that its running, I intend to redo a proper configuration using the workbench, just to gets my ducks in a row.
hth
Go to Run type services.msc. Check whether MySQL services is running or not. If not, start it manually. Once it started, type mysqlshow to test the service.

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.