Last active
December 10, 2015 22:08
-
-
Save lerosua/4500045 to your computer and use it in GitHub Desktop.
mysql 改数据命令
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//打开数据库 | |
$mysql -h localhost -u leros -p密码 | |
//连接数据库表 | |
mysql> connect statusnet | |
//根据条件查看数据值 | |
mysql> select value from config where section="site" and setting="path"; | |
//根据条件设置新值 | |
mysql> update config set value='xxxx' where section='site' and setting='path'; | |
//把头像表的url字段中的http转成https jyf教的 | |
mysql> update avatar set url=replace(url, 'http://', 'https://'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment