About Database...
mac mysql error You must reset your password using ALTER USER statement before executing this statement.
摘要: mac mysql error You must reset your password using ALTER USER statement before executing this statement.
安裝完mysql 之后,登陸以后,不管運行任何命令,總是提示這個
step 1: SET PASSWORD = PASSWORD('your new password');
step 2: ALTER USER 'root'@'localhost' PASSWORD EXPIRE NEVER;
step 3: flush privileges;
完成以上三步退出再登,使用新設置的密碼就行了,以上除了紅色的自己修改成新密碼外,其他原樣輸入即可
參考1: https://dev.mysql.com/doc/refman/5.6/en/alter-user.html
參考2: http://dev.mysql.com/doc/refman/5.7/en/password-
閱讀全文
posted @
2016-05-22 11:02 聶文龍 閱讀(482) |
評論 (0) 編輯
SQL Server 2005 2208 xp_cmdshell存儲過程 默認禁用了,用下面的語句可以打開和禁用。
摘要: --SQL語句開xp_cmdshell
-- To allow advanced options to be changed.
EXEC sp_configure 'show advanced options', 1
GO
-- To update the currently configured value for advanced options.
RECONFIGURE
GO
-- To enable the feature.
EXEC sp_configure 'xp_cmdshell', 1
GO
-- To update the currently configured value for this feature.
RECONFIGURE
GO
-- To disallow advanced options to be changed.
EXEC sp_configure 'show advanced options', 0
GO
<
閱讀全文
posted @
2013-03-07 16:00 聶文龍 閱讀(596) |
評論 (0) 編輯
如何導出mysql 數據結構
摘要: mysqldump -d -uroot -p database>databaseStr.sql
-d :只要結構
-p :輸入密碼
-uroot : 用戶為root
database>databaseStr.sql 把database 數據庫的結構生成為文件 databaseStr.sql
閱讀全文
posted @
2008-07-02 10:36 聶文龍 閱讀(1940) |
評論 (0) 編輯