I'm trying to install MySQL on my Amazon Linux instance following these set of commands:
(Taken from here):
wget https://dev.mysql.com/get/mysql57-community-release-el6-11.noarch.rpm
yum localinstall mysql57-community-release-el6-11.noarch.rpm
yum remove mysql55 mysql55-common mysql55-libs mysql55-server
yum install mysql-community-server
service mysqld restart
mysql_upgrade -p
However, when I run:
service mysqld restart
I get the following error message:
Running the same command prefixed with sudo gets the following error message:
And then running:
mysql_upgrade -p
Produces the following error message:
A little bit lost on how to tackle this problem. Any ideas?
You can use the root user to try the above operation.
If permission is still denied, then you need to focus on SELinux and AppArmor.
Related
While I am trying to open my installed MySQL workbench it is not opening, I try to open using terminal it shows the below error:
command:
mysql-workbench
Error:
> Workbench can't find libproj.so, some options may be unavailable.
> /usr/bin/mysql-workbench-bin: error while loading shared libraries: libzip.so.4: cannot open shared object file: No such file
> or directory
I've tried to install broken packages and creating symbolic link but also I am not able to fix.
Can someone help to solve this issue?
Thanks in advance.
if running mysql-workbench command gives following warning:
Workbench can't find libproj.so, some options may be unavailable.
run this command to check if you have the above mentioned file :
$ find / -name libproj.so 2> /dev/null
if not found, then run this command to install the lacking file dependency to remove the warning:
$ sudo apt install libproj-dev proj-bin
It will remove the warning. Worked for me. Please try in your system. Below is my command output:
$ find / -name libproj.so 2> /dev/null
/usr/lib/x86_64-linux-gnu/libproj.so
$ mysql-workbench
Found /lib/x86_64-linux-gnu/libproj.so.15
(Note: even if this warning was there, my Workbench was still running properly. I followed the above mentioned steps just to get rid of that warning.)
Reinstalling workbench and doing --fix-broken install worked for me.
Details:
Uninstall workbench
sudo apt remove mysql-workbench
Clean
sudo apt clean
sudo apt autoremove
Update repos
sudo apt update && apt upgrade
Install workbench again
sudo apt install mysql-workbench
The fix
sudo apt --fix-broken install
Run workbench
mysql-workbench
I am trying to upgrade MySQL on my VPS server. I have root access, but whne I try to run the following commands it says that it is not in the YUM repository.
sudo yum localinstall mysql57-community-release-el6-{version-number}.noarch.rpm (obviously replacing with the correct version number(
sudo yum install mysql-community-server
Then I get this message.
No package mysql-community-server available.
Error: Nothing to do
Any help would be great.
After install, run fine mysql and restart my mac, i get this error, when i call this command line:
sudo /usr/local/mysql/support-files/mysql.server start
Hier the error:
ERROR! The server quit without updating PID file (/usr/local/mysql/data/Mac.local.pid).
And when i try to connect me to mysql -u root -p, this error:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
I try the solution in this link
MySQL does not start when upgrading OSX to Yosemite or El Capitan, but nothing. I also try to change the owner of the mysql folder with:
sudo chown -R _mysql:_mysql /usr/local/mysql/
But nothing.
Any ideas?
Thank
start your mysql in safe_mode.its working for me. hope it would work also for you
/usr/local/mysql/bin/mysqld_safe start
I had to uninstall mysql
brew uninstall mysql#5.7
and reinstall again
brew install mysql#5.7
When I check my terminal I could see this warning
[ERROR] --initialize specified but the data directory has files in it. Aborting.
then I had to do this
rm -rf /usr/local/var/mysql
and open my.cnf like this
nano /usr/local/etc/my.cnf
and remove this line mysqlx-bind-address = 127.0.0.1
then do the post-install like this
brew postinstall mysql#5.7
Which finally worked. I had wasted a whole day on this. Hope someone finds this useful.
I tried everything and I am still unable to start the MySQL service. The error is as below:
[root#localhost ~]# service mysql.server start Starting MySQL.....
ERROR! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid).
[root#localhost ~]# service mysql start Starting MySQL....
ERROR! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid).
Things I tried:
Removing the .err file and restarting, no use. Creating a .sock file and a .pid file as the above error mentions, still no use. Almost tried all the steps in most of the forums, still nothing.
I tried all the config files, nothing seems to resolve my issue.
Try the next steps:
First remove MySQL:
sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean
Then reinstall:
sudo apt-get update
sudo apt-get install mysql-server
sudo mysql_install_db
sudo /usr/bin/mysql_secure_installation
After these steps mysql process should be up and running. Anyway, if this is not happening ( you can verify by typing sudo service mysql status ) just try:
sudo service mysql start or sudo /etc/init.d/mysql start
I strongly reccommend to post your log files (/var/log/syslog) for mysql if you get any problems, so that we can advice you properly.
If you're still getting the same error, please check for svs answer from this SO question
I am installing mysql and mysql-server in fedora.What I did was:
su (to change to root)
yum install mysql mysql-server
chkconfig --levels 235 mysqld on
and when I try to start mysqld using /etc/init.d/mysqld start, it gives me an error saying No such a file or directory.
By using whereis mysql I got the following result:
$whereis mysql
mysql: /usr/bin/mysql /usr/lib/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz
Can some one help me find where I installed mysql and how I can start it? Thank you
Try starting MySQL by using service mysqld start instead.