
文章名称:突破服务器远程管理限制?
文章地址:>用rman备份。先启用归档
1 shutdown database
SQL>shutdown immediate;
2 mount the database
SQL>startup mount
3 enable archivelog
SQL> alter system set log_archive_dest_1='location=D:\oracle\product\1020\oradata\orcl\arc'; <=== pls change the archivelog destination
SQL>alter database archivelog;
4 open the database
SQL>alter database open;
SQL>archive log list
SQL>quit
进入rman
rman target /
用这个脚本备份
run {
allocate channel d1 type disk;
backup incremental level 0 tag 'full_backup' format 'D:\tmp\dbfile_%d_%u_%T' database;
backup archivelog all format 'D:\tmp\arch_%d_%t%s' delete input;
delete noprompt backup completed before 'SYSDATE-7';
release channel d1;
}1
检查MySQL里是否已经支持InnoDB。
#
mysql
-u
root
-p
输入密码即可登录MySQL命令行
mysql>
show
variables
like
'have_innodb';
+---------------+-------+
|
Variable_name
|
Value
|
+---------------+-------+
|
have_innodb
|
YES
|
+---------------+-------+
如果上面的值是DISABLED或无,就需要开启InnoDB。
2
打开MySQL配置文件。
Windows:
$MYSQL_INSTALL_DIRECTORY/myini
Linux/Unix:
/etc/mysql/mycnf
3
看有没有skip-innodb,并把它注释掉。
4
然后关掉MySQL再重启。
Linux:
#
/etc/initd/mysql
stop
#
rm
/var/lib/mysql/ib_logfile
#
/etc/initd/mysql
start
Windows:
Go
to
$MYSQL_INSTALL_DIRECTORY/data
and
either
delete/move
the
log
files
with
the
prefix
ib_logfile一、密码的修改:使用mysqladmin命令
1、例如你的 root用户现在没有密码,你希望的密码修改为abc,那么命令是:mysqladmin -u root password abc
2、如果你的root现在有密码了,那么修改密码为abc的命令是:mysqladmin -u root -p password youyou
注意,命令回车后会问你旧密码,输入旧密码之后命令完成,密码修改成功。
二、密码的消除
1、以root登录:mysql -u root -p
2、mysql>use mysql;
3、mysql>update user set password='' where user='root';
重新启动下mysql服务就可以啦。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)