
Mysql
yfleng2002
这个作者很懒,什么都没留下…
展开
-
mysql 执行脚本的方法
mysql 执行脚本的方法 mysql>source file_name 或: mysql> \. file_name 而oracle中执行脚本 sql>@file_name原创 2011-10-21 18:03:14 · 588 阅读 · 0 评论 -
mysql备份shell脚本
#!/bin/bash ### MySQL Server Login Info ### MUSER="root" MPASS="root" MHOST="localhost" MYSQL="$(which mysql)" MYSQLDUMP="$(which mysqldump)" DBNAME="test" BAK="/backup/mysql" GZIP="$(which g原创 2012-04-11 15:35:02 · 524 阅读 · 0 评论 -
mysql忘记root密码如何重置
1.停掉mysql服务 2.打开一个命令行窗口用如下命令启动mysql mysqld --skip-grant-tables 3.修改root密码 另外打开一个命令行窗口执行下面命令 mysql mysql> use mysql mysql> update user set password=password('new_password') where user='r原创 2012-05-09 17:47:49 · 514 阅读 · 0 评论 -
install mysql on linux
1. Download http://dev.mysql.com/downloads/mysql/#downloads 2. upload it to linux server and unzip it tar -zxvf packagename 3. create user and usergroup mkdir -p /opt/mysql gro原创 2013-05-09 18:38:09 · 706 阅读 · 0 评论