## Allows people in group wheel to run all commands %wheel ALL=(ALL) ALL
#usermod -g root tommy
## Allow root to run any commands anywhere root ALL=(ALL) ALL tommy ALL=(ALL) ALL
tommy:x:500:500:tommy:/home/tommy:/bin/bash
tommy:x:0:500:tommy:/home/tommy:/bin/bash
/etc/init.d/mysqld status mysqld dead but subsys locked
#/etc/init.d/mysql start
#ps -ef | grep -i mysql root 3466 1 0 01:45 pts/1 00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/BSC.TEST.pid mysql 3569 3466 16 01:45 pts/1 00:00:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/lib/mysql/BSC.TEST.err --pid-file=/var/lib/mysql/BSC.TEST.pid root 3597 3105 0 01:45 pts/1 00:00:00 grep -i mysql
/etc/init.d/mysql stop
#/usr/bin/mysqld_safe --skip-grant-tables >/dev/null 2>&1 &
#/usr/bin/mysql -u root mysql
mysql> update user set password = Password('root') where User = 'root';
mysql> flush privileges;
mysql> exit;
#mysql -u root -p
root
mysql> show databases;
ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
mysql> SET PASSWORD=PASSWORD('root');
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> show databases;
+--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | test | +--------------------+ 4 rows in set (0.00 sec)
# mysqladmin -u root -p password "test123"
Enter password: 【输入原来的密码】
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有