I'm trying to install ERPNext with their install script provided at github (https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh) on my virtual CentOS 7 server. It has MariaDB 10.x installed and I have to remove it first, before I use the script, otherwise I get an error.
But I don't have a solution for following problem, could you guys help me out?
sudo bash setup_frappe.sh --setup-production
Installing for centos 7 amd64
In case you encounter an error, you can post on https://discuss.frappe.io
Adding centos mariadb repo
Installing packages for centos. This might take time...
Installing wkhtmltopdf
Configuring CentOS services
Starting services
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2 "No such file or directory")'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
In Cmd try this:
sudo service mysql stop
sudo service mysql start
Related
I had mysql version 8 earlier, due to some dependency i had to downgrade to 5.7 so installed mysql#5.7 via brew.
Steps
brew uninstall mysql
brew install mysql#5.7
mysql.server start
brew link mysql#5.7 --force
Now once i have stopped the server and now i want to restart it but i am getting
ERROR! The server quit without updating PID file (/usr/local/var/mysql/dev_box.local.pid).
When i do
mysqld --initialize
I am getting
[ERROR] --initialize specified but the data directory has files in it. Aborting.
[ERROR] Aborting
But when i try to start the server using services it's starting but i am not getting anything in the grep but when i do "brew services list" it's showing that server is started.
but i am not able to login
mysqladmin -u root password 'password'
This gives the error
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
I have tried almost everything from
MySql server startup error 'The server quit without updating PID file '
After MySQL install via Brew, I get the error - The server quit without updating PID file
With no luck, hoping for some quick help.
I had the same situation. What helped me is:
First uninstall mysql using brew
brew uninstall mysql
brew uninstall mysql#5.7
Then manually go through all folders in /usr/local/ and delete everything related to mysql.
For example, I had /usr/local/etc/my.cnf and my.cnf.default, so had to run rm -f /usr/local/etc/my*; also /usr/local/mysql-5.7.21-macos10.13-x86_64 and mysql-8.0.16-macos10.14-x86_64, so rm -rf /usr/local/mysql* and so on.
After this is done install using brew
brew install mysql#5.7
brew services start mysql#5.7
I'm using Arch Linux. I've installed mysql by aurget. Then when I'm trying to make some data base I face the error: "Can't connect to local MySql server through socket '/run/mysqld/mysqld.sock' (2)" What should I do to resolve my problem?
In Archlinux, services are not enabled or started automatically after installation (unlike Debian/Ubuntu, for example). According to ArchWiki, after installing the mariadb package you need to run (as root):
mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
systemctl enable mariadb.service
systemctl start mariadb.service
I've resolved my problem. It will be lesson for me. I should just update packages with sudo pacman -Syu and mysql start working.
I have a dedicated server with CentOS 7 command line OS, and then I remove MariaDB from it and download MySQL RPM packages(Red Hat Enterprise Linux 7 / Oracle Linux 7 (x86, 64-bit), RPM Bundle 5.7.1 557.1M) and then run rpm -ivh --replacefiles mysql-*.rpm for install that.
after install when I try to check mysql -version I face with this error
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
when I check the mysql datadir path in /var/lib/mysql/, this path haven't any files !!
please help me how I can install and then run MySQL server from rpm packages(offline mode) and then use it in CentOS 7. and How I can fix this problem.
thanks for helps.
Amazon linux AMI and Percona server 5.6 don't appear to be compatible right out of the box. MySQL won't start after successful install.
In Perconas docs it does say that it is supported.
Steps to get to the below:
yum install http://www.percona.com/downloads/percona-release/percona-release-0.0-1.x86_64.rpm
yum install Percona-Server-server-56
Which installs the client + shared 56 libraries as well.
Some more accurate logs.
[root#* ec2-user]# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[root#* ec2-user]# service mysql restart
ERROR! MySQL (Percona Server) PID file could not be found!
Starting MySQL (Percona Server).......... ERROR! The server quit without updating PID file (/var/lib/mysql/ip-172-30-0-92.pid).
On the most recent Amazon Linux AMI, I was able to start the server after running these commands:
yum install 'perl(Data::Dumper)'
yum reinstall Percona-Server-server-56
If the perl-Data-Dumper package is not installed, mysql_install_db fails to run and perform the initial setup.
The Percona-Server-server-56 package should declare a dependency on perl-Data-Dumper, but you can work around that error (and avoid the reinstall) by installing it first.
I installed XAMPP for Linux a couple of days ago and was working fine. Today I do wrongly
chmod 777 /opt/lampp
then MySQL won't be started. then I completely uninstall XAMPP then again install XAMPP then following message come ::
Starting XAMPP for Linux 1.8.1...
XAMPP: Another web server daemon is already running.
XAMPP: Another MySQL daemon is already running.
XAMPP: Another FTP daemon is already running.
XAMPP for Linux started.
then I tried to stop MySQL by typing::
sudo service mysql stop
Then It shows that ::
mysql: unrecognized service
then I tried to stop apache server by typing::
sudo service apach2 stop
Then It shows that ::
apache2: unrecognized service
Any suggestion ??
Try:
sudo /etc/init.d mysql restart