access_log apps websites RUNOOB
中文顯示亂碼在cmd中輸入 CHCP 65001
重設密碼的方法:
mysql -u root -p123 #登陸mysql 服務器
use mysql #使用mysql數據庫
update user set password=PASSWORD("123456") where User='root' #更新用戶密碼
flush privileges #從新刷新權限
quit #退出mysql服務器
create database RUNOOB; # 建立數據庫
use RUNOOB; # 使用已建立的數據庫
set names utf8; # 設置編碼
source C:\Users\yuxinglx\Downloads\websites.sql # 導入備份數據庫mysql
SHOW DATABASES;
use RUNOOB;
SHOW TABLES;
DROP DATABASE apps;
DROP TABLE websites;
DELETE * FROM websites;
SELECT * FROM apps;
show create table websites;
show full columns from websites;
alter table websites modify name varchar(20) character set utf8;
alter table websites default character set utf8;
alter table websites change score score varchar(50) character utf8;web
Windows
1.點擊「開始」->「運行」(快捷鍵Win+R)。
2.啓動:輸入 net start mysql
3.中止:輸入 net stop mysql
提示* Redhat Linux 也支持service command,啓動:# service mysqld start 中止:# service mysqld stop 重啓:# service mysqld restartsql