I have just installed XAMPP, and I cannot run MySQL Database on Mac OS M1.
I have tried multiple things I have found online so far. First, I downloaded the 8.1.6 / PHP 8.1.6 (361 Mb) and I couldn't even start it, then I downloaded the 163 Mb version and everything seemed fine, except that I cannot run the database.
I have tried everything from here, but it didn't work.
I couldn't find the ID either, after running
ps aux | grep mysql
I got:
_mysql 22508 0.0 1.1 34989944 178672 ?? Ss 3:39PM 0:00.30 /usr/local/mysql/bin/mysqld --user=_mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --log-error=/usr/local/mysql/data/mysqld.local.err --pid-file=/usr/local/mysql/data/mysqld.local.pid --keyring-file-data=/usr/local/mysql/keyring/keyring --early-plugin-load=keyring_file=keyring_file.so
root 23300 0.0 0.0 408628368 1648 s000 S+ 3:41PM 0:00.00 grep mysql
sh-3.2#
Server events:
Starting Apache Web Server...
/Applications/XAMPP/xamppfiles/apache2/scripts/ctl.sh : httpd started
Starting ProFTPD...
Checking syntax of configuration file
/Applications/XAMPP/xamppfiles/proftpd/scripts/ctl.sh : proftpd started
Stopping all servers...
Stopping Apache Web Server...
/Applications/XAMPP/xamppfiles/apache2/scripts/ctl.sh : httpd stopped
Stopping ProFTPD...
Checking syntax of configuration file
/Applications/XAMPP/xamppfiles/proftpd/scripts/ctl.sh : proftpd stopped
Could someone help me with this, please?
Thank you.
Related
I followed this tutorial to install MySQL 8.0 on my centos 6 Virtual server.
Tutorial
However when I get to the step where Im supposed to start the service (service mysqld start)
I get the following error:
Initializing MySQL database: [ OK ]
/usr/bin/mysqld_safe: line 199: 1632 Killed env MYSQLD_PARENT_ PID=1450 nohup /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin -dir=/usr/lib/mysql/plugin --user=mysql --log-error=/var/log/mysqld.log --pid-fi le=/var/run/mysqld/mysqld.pid --socket=/var/lib/mysql/mysql.sock < /dev/null > / dev/null 2>&1
MySQL Daemon failed to start.
Starting mysqld: [FAILED]
I tried serveral times and always get an error, does anyone know how to fix this?
I ran into this problem, and after inspecting journalctl -xe, I saw that it was due to an out-of-memory error. I solved this by upgrading from a 512MB RAM to a 1GB RAM for my virtual machine
MySQL already running, but when open http://localhost/phpmyadmin/ I get error like this :
#2002 - Connection refused The server is not responding (or the local server's socket is not correctly configured).
when I try run from command line with sudo /opt/lampp/lampp start, I get the message like this :
XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...already running.
I have checked in ps -aux | grep mysqld
I get message like this:
ahmadso+ 7118 0.0 0.0 15948 2220 pts/6 S+ 09:23 0:00 grep --color=auto mysqld
when I try sudo service mysql stop
I get message like this :
stop: Unknown instance:
I use Ubuntu operating system, I have tried to uninstall and reinstall xampp, but does not resolve the issue.
please help me.
Try stopping all XAMPP Services and then start them again:
Stop
sudo service apache2 stop
sudo service mysql stop
Start
sudo service apache2 start
sudo service mysql start
This morning I get up to a date where all db on my dedicated server down. I couldn't restart the service. When I do ps aux | grep mysql I see a process which pid changes constantly.
root 4715 0.0 0.0 103248 844 pts/0 S+ 08:28 0:00 grep mysql
So I stop running on boot and restarted the server.
chkconfig --list mysql shows me
mysql 0:off 1:off 2:off 3:off 4:off 5:off 6:off
But I still see mysql process on ps. Why?
Server OS: CentOS.
Panel: WHM
What you're seeing is the grep process running. mysql is not running.
The entry you're seeing is the command you are using to search for MySQL.
To test this try doing:
ps aux | grep banana
When I reboot, mysql 5.1.59 is not running despite Activity Monitor showing 2 mysql PIDs. IF I quit the 2 mysql instances, I am able to startup mysql in Webmin (working PID is 3735, see below).
When I run this in Terminal: ps axu | grep mysql
I get:
root 3261 0.0 0.0 2435492 932 ?? Ss 9:52AM 0:00.03 /bin/sh /usr/local/mysql/bin/mysqld_safe --user=mysql
admin1 3843 0.0 0.0 2435492 348 s000 R+ 9:56AM 0:00.00 grep mysql
_mysql 3735 0.0 0.3 2522936 13680 ?? S 9:53AM 0:00.04 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --user=mysql --log-error=/usr/local/mysql/data/macpro.local.err --pid-file=/usr/local/mysql/data/macpro.local.pid --socket=/tmp/mysql.sock --port=3306
Why do there seem to be 3 instances (3 users) here?
I assumed that my file:
com.mysql.mysql.plist
in
Library/LaunchDaemons
would be the only method that mysql launches at startup. I do not use the mysql PrefPane (never worked anyway), nor are there any mysql items in Library/StartupItems.
Any help would be great. Thanks!
I have freshly installed xampp-linux-1.8.1 on my Ubuntu 12.04 (Mint 13 maya) Operating system.
When run lampp, I get :
/opt/lampp/lampp start
Starting XAMPP for Linux 1.8.1...
XAMPP: XAMPP-Apache is already running.
XAMPP: Another MySQL daemon is already running.
XAMPP: XAMPP-ProFTPD is already running.
XAMPP for Linux started.
In the : localhost/xampp/
MySQL DataBase is Deactivated !!!
ps -aux | grep 'mysql'
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html mysql 3159 0.0 0.9 316264 31880 ? Ssl 16:48 0:00 /usr/sbin/mysqld
root 4745 0.0 0.0 4648 840 pts/5 S+ 17:02 0:00 grep --color=auto mysql
When I tried to stop /usr/sbin/mysqld but it can't be stopped with this command !!!
/usr/sbin/mysqld stop
Please I need Help, Thanks.
i've resolved the issue in this way:
sudo chmod -R 777 /opt/lampp
sudo chown -hR nobody /opt/lampp
sudo chmod -R 755 /opt/lampp
then stop other mysqld running with:
sudo service mysql stop
Also had this issue, after troubleshooting for almost 2 hours I found that it was because of other Apache and MySQL packages also running on my system. Removed all Apache and MySQL packages and reinstalled XAMPP again. Success.