dar nimic
la pornire primesc eroarea in putty
Cod: Selectaţi tot
mysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
cannot open direct sql connection to host: localhost user: m2user db: common
cannot start server while no common sql connected
mysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)am incercat tut asta
http://just4metin.ro/ghiduri-tutoriale/ ... 11202.html
si asta
http://just4metin.ro/probleme-rezolvate ... 26563.html
si altele
si primesc
Cod: Selectaţi tot
root@:~ # /usr/local/etc/rc.d/mysql-server stop
mysql not running? (check /var/db/mysql/.localehost.pid).
root@:~ # /etc/rc.d/init.d/mysql stop
/etc/rc.d/init.d/mysql: Command not found.
root@:~ # mysqld_safe --skip-grant-tables &
[1] 856
root@:~ # 170625 10:13:05 mysqld_safe Logging to '/var/db/mysql/.localehost.err'.
170625 10:13:05 mysqld_safe Starting mysqld daemon with databases from /var/db/mysql
mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.5.42 Source distribution
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> > use mysql;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '> use mysql' at line 1
mysql> update user set password=PASSWORD("PAROLA_NOUA") where User='root';
ERROR 1046 (3D000): No database selected
mysql> flush privileges;
ERROR 1033 (HY000): Incorrect information in file: './mysql/host.frm'
mysql> quit
Bye
root@:~ # /usr/local/etc/rc.d/mysql-server stop
Stopping mysql.
Waiting for PIDS: 931170625 10:13:37 mysqld_safe mysqld from pid file /var/db/mysql/.localehost.pid ended
.
[1] + Done mysqld_safe --skip-grant-tables
root@:~ # /usr/local/etc/rc.d/mysql-server start
Starting mysql.
root@:~ #







