现在这个时代,很多是mysql数据库,废话不多说。忘记密码怎么办首先找到启动文件,添加选项--skip-grant-tables--skip-networkingvim/etc/init.d/mysqld
......
......
$exec--datadir="$datadir"--socket="$socketfile"--pid-file="$mypidfile"--skip-grant-tables--skip-net..
分类:
数据库 时间:
2015-05-26 19:07:18
阅读次数:
201
How Many TablesTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 1213Appoint description:DescriptionToday is I...
分类:
其他好文 时间:
2015-05-26 00:05:32
阅读次数:
156
mysqldump: Got error: 145: Table 'wp_options' is marked as crashed and should be repaired when using LOCK TABLES错误如上所示。今天在给自己的wp网站搬家的时候,导出数据时发现导不出来,报了...
分类:
数据库 时间:
2015-05-25 19:58:36
阅读次数:
993
解锁第一种show processlist;找到锁进程,kill id ;第二种mysql>UNLOCK TABLES;锁表锁定数据表,避免在备份过程中,表被更新mysql>LOCK TABLES tbl_name READ;为表增加一个写锁定:mysql>LOCK TABLES tbl_name ...
分类:
数据库 时间:
2015-05-25 16:09:52
阅读次数:
1515
1,while循环 declare v_tname varchar2(20); cursor c_tname is select a.TABLE_NAME from user_tables a where a.TABLESPACE_NAME = 'VTMDATA';
begin open c_tna...
分类:
数据库 时间:
2015-05-24 12:45:57
阅读次数:
151
通过本次验证,实现了在Cordys平台上使用Oracle同义词技术方案,结论如下:
1.私有同义词与公有同义词没有区别;
2.Database Metadata 中并不提供针对同义词的服务,也不会把同义词识别为表。也就是说,不能通过Database Metadata 直接为同义词创建method;
3.使用同义词就是首先通过其他表(Tables)创建method,然后修改这个method的SQL语句,改...
分类:
数据库 时间:
2015-05-24 10:09:22
阅读次数:
410
Suppose that a website contains two tables, the Customers table and the Orders table.
Write a SQL query to find all customers who never order anything.
Table: Customers.
+----+-------+
| Id | Na...
分类:
数据库 时间:
2015-05-24 08:53:15
阅读次数:
164
1.单实例现将数据库停掉/etc/init.d/mysqldstop使用如下命令登陆mysqld_safe--skip-grant-tables--user=mysql&现在可以使用mysql登陆了mysql-uroot然后就可以改密码了updatemysql.usersetpassword=password("password")whereuser=‘root‘andhost=‘localhost‘;2.多实例先将数..
分类:
数据库 时间:
2015-05-23 06:39:14
阅读次数:
213
1.单实例现将数据库停掉/etc/init.d/mysqldstop使用如下命令登陆mysqld_safe--skip-grant-tables--user=mysql&现在可以使用mysql登陆了mysql-uroot然后就可以改密码了updatemysql.usersetpassword=password("password")whereuser=‘root‘andhost=‘localhost‘;2.多实例先将数..
分类:
数据库 时间:
2015-05-23 06:38:13
阅读次数:
188