MySQL - Issues Loading - mysql

I've recently installed MariaDB via Homebrew on my mac, however, I'm having trouble starting it up, I get the error response below. I'm new to MySQL so don't know what I need to do to fix this. Any help is appreciated.
Marks-MacBook-Pro:~ morts$ mysql.server start
Starting MariaDB
.180701 13:00:42 mysqld_safe Logging to '/usr/local/var/mysql/Marks-MacBook- Pro.local.err'.
180701 13:00:42 mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
. ERROR!

Related

It will be terminated immediately when installing MYSQL in AIX

After running mysql_install_db in mysql/scripts, I ran mysqld_safe, and the following error appeared.
220329 00:08:10 mysqld_safe Logging to '/home/ts_dist/mysql57/data/daenerys.err'.
220329 00:08:10 mysqld_safe Starting mysqld daemon with databases from /home/ts_dist/mysql57/data
220329 00:08:11 mysqld_safe mysqld from pid file /home/ts_dist/mysql57/data/daenerys.pid ended
MySQL is tar.The gz file was moved to the corresponding directory and decompressed, and it was not installed with the rpm command.
Is it a problem that can occur during this process?

MySQL on OSX Sierra can't start: The server quit without updating PID file

Several problems with mysql since last Sierra Update.
Reinstalled several times with brew or mysql dmg and followd many many "solutions" on SO.
Finally it worked but after a Mac Crash, I face the same problem.
MySql won't start from preference panel
Mysql won't start from terminal: Can't connect through /tmp/mysql.sock...of course, mysqld is not running
trying to start mysqld:
sudo /usr/local/mysql/support-files/mysql.server start
ERROR! The server quit without updating PID file (/usr/local/mysql/data/My-iMac.local.pid)
sudo /usr/local/mysql/bin/mysqld several errors and shutdown
a bit stuck
Just tried this
sudo /usr/local/mysql/bin/mysqld_safe
mysqld_safe Logging to '/usr/local/mysql/data/My-iMac.local.err'.
Starting mysqld daemon with databases from /usr/local/mysql/data
mysqld_safe mysqld from pid file /usr/local/mysql/data/My-iMac.local.pid ended
And now looking at error log, the explanation is clear:
tail /usr/local/mysql/data/My-iMac.local.err
InnoDB: corrupt if we cannot apply the log records in the InnoDB log to it.
So I added in my.cnf
[mysqld]
innodb_force_recovery = 1
and now it starts!
It was probably due to previous Mac Crash
In my case the owner of the data folder was changed after an OS update.
After fixing this with …
sudo chown -R mysql /usr/local/mysql/data
… everything worked like a charm again.
Oh, I feel your pain. I've had this happen many times. Stopping the processes didn't always work. To solve this I simply went into System Preferences and MySQL... stop the process from there and try to restart.

Cannot find PID file after reinstall of mysql

I was getting an error that server quit without updating pid file. So I thought I would uninstall it and install it again.
I had installed it with homebrew last time so I did:
brew uninstall mysql
and to install it I did:
brew install mysql
Even after this however, I am still getting the same error.
$ mysql.server start
Starting MySQL
. ERROR! The server quit without updating PID file (/usr/local/var/mysql/Tirths-MBP.fios-router.home.pid).
If this mysql like a linux binaries; Try to regen PID with mysqld_safe as :
stop server
bin>$./mysql.server stop
regen PID file :
bin>$./mysqld_safe -u youruser&
then try to start mysql as :
bin>$./mysql.server start
p.s.
...and do you have etc/my.cnf file gen-ed ? It would be more helpful you to provide logs;
Hope this helps; Report your results please;

Can't reset root password on MySql Server Mac OS

I've been struggling with this problem for 2 days and I couldn't understand why I'm having this problem.
I've installed MySql server on my Mac, it's working just fine, but I need to reset root password. I followed this tutorial - http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html. And when I put this command
mysqld_safe --init-file=/Users/user/Documents/mysql-init &
I've got this output
[1] 2551
bash-3.2# 151127 16:06:07 mysqld_safe Logging to '/usr/local/mysql/data/MacBook-Pro-Mojo.local.err'.
151127 16:06:07 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
151127 16:06:09 mysqld_safe mysqld from pid file /usr/local/mysql/data/MacBook-Pro-Mojo.local.pid ended
Of course, my password wasn't changed at all. Could you explain me how can I make it work?
run this command:
sudo dpkg-reconfigure mysql-server-N.N
where N.N is the MySQL Server version. Mine was 5.5

MySQL on ubuntu 12.04 won't run after MySQL Workbench installed

Recently I installed MySQL Workbench 6.2 and used it to create ER diagrams of the MySQL 5.5.41 databases I'm working with on Ubuntu 12.04. Everything worked fine until I restarted Ubuntu and suddenly mysql was no longer running. Running mysqld from the command line results in this:
150216 12:50:37 [ERROR] Can't read from messagefile '/usr/share/mysql/english/errmsg.sys'
150216 12:50:37 [Warning] Can't create test file /var/lib/mysql/euler.lower-test
150216 12:50:37 [Warning] Can't create test file /var/lib/mysql/euler.lower-test
mysqld: Can't change dir to '/var/lib/mysql/' (Errcode: 13)
150216 12:50:37 [ERROR] Aborting
150216 12:50:37 [Note]
The file /usr/share/mysql/english/errmsg.sys exists, owned by root, with permissions 644. The directory /var/lib/mysql exists, owned by mysql, with permissions 700.
I'm guessing that the installation of Workbench changed something (maybe config files) so that mysql is no longer working, but after a fair amount of Internet research, I have not discovered how to solve this problem. Any help will be greatly appreciated.
Seems like file permission problem. Try running mysqld again using sudo
If this doesn't help, maybe you shouldn't be starting it directly via mysqld. Check if the installer package added a service
sudo service --status-all | grep mysql
And if one exist, use it to start mysql, typically:
sudo service mysqld start
Also don't forget to check if mysqld is already running. If so you can't start duplicate process. I know this sound silly but has happened to me before
ps -ef | grep mysqld