1.設置環境變量
PATH="$PATH":/usr/local/mysql/bin
sudo mysqld_safe --skip-grant-tables --skip-networking &
3.修改密碼
update mysql.user set authentication_string=PASSWORD('123456') where user='root' and host='localhost';
flush privileges;
1.設置環境變量
PATH="$PATH":/usr/local/mysql/bin
sudo mysqld_safe --skip-grant-tables --skip-networking &
3.修改密碼
update mysql.user set authentication_string=PASSWORD('123456') where user='root' and host='localhost';
flush privileges;
一、幾個基本概念 tty(Teletypewriter) 來源於“電傳打印機”,Linux系統中則是終端設備的統稱,同時也代指操作系統中支持終端設備的tty子系統。 console(控制檯)