New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Failed to install Xeoncross/lowendscript
When installing mysql with this command:
./setup-debian.sh mysql
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
Anyone can help?
Comments
Make sure mysql is running (/etc/init.d/mysql start) and listening on that socket (see /etc/mysql/my.cnf). Otherwise use a port instead of a socket.
Ubuntu? Installing MySQL on Ubuntu sometimes PITA
I'm a noob on linux , just copy the command and paste into putty
debian 7
it's because the script was out of date, now the dotdeb mysql is 5.6 version, and the configuration file updated as default engine is Innode.
you can use the default Innode just remove the below part in /etc/mysql/conf.d/lowendbox.cnf
>
or you need to update a correct configuration to disable Innode and use MyISAM:
>
you can check from mysql official site for reference: http://dev.mysql.com/doc/refman/5.6/en/innodb-turning-off.html
and also pay attention to php-fpm configuration as the PHP version also updated.
change all the
part to
otherwise you'll meet 502 error as can't fine php upstream
Thank you! it seems hard for linux noob, would you like to recommend some up to date LEB scripts?
I just found https://github.com/Xeoncross/lowendscript got some pull request from other users, but i'm not sure if fix the mysql issue. did you use the latest script from the github?
I made some update based on Xeoncross's script, but it's also 4 months ago, I'm not sure if it works right now. you can just have a try. https://github.com/yywudi/lowendscript
ANYWAY, if you want to use a system configuration script, you must know every line of this script, not only to understand linux script language but also for your system security.
keep studying
Yes, I used the latest script from the github.
I'll try yours!
Also failed
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.6 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.6; however:
Package mysql-server-5.6 is not configured yet.
dpkg: error processing mysql-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mysql-server-5.6
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
mysql start/running, process 25460
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
I have to give up this script...
@saint
>
yep, it's normal as I didn't update it for over 4 months. As I have no new debian server need to install.
then try to figure out it by yourself, or submit an issue in Xeoncross's github repository