新安裝mysql設定root帳號
C:\mysql\bin> mysql mysql
mysql> delete from user where host='localhost' and user='';
mysql> quit
C:\mysql\bin> mysqladmin reload
C:\mysql\bin> mysqladmin -u root password "密碼"
或是
C:\mysql\bin> mysql -u root
mysql> SET PASSWORD FOR root@localhost=PASSWORD('新密碼');
arrow
arrow
    全站熱搜

    yoonow 發表在 痞客邦 留言(0) 人氣()