添加mysql用户

mysql>grant select,insert,update,delete,create,drop on database.employee to user@localhost identified by "123"; 给来自localhost的用户user分配可对数据库database的employee表进行select,insert,update,delete,create,drop等操作的权限,并设定口令为123。

2006-09-13 · wuan

移动mysql目录

$ sudo /etc/init.d/mysql stop $ sudo /etc/init.d/apache2 stop $ sudo cp -rf /var/lib/mysql YOURS/mysql $ sudo mv /var/lib/mysql /var/lib/mysql.bakd $ sudo /etc/init.d/mysql start Starting MySQL database server: mysqld...failed or took more than 6s. Please take a look at the syslog. /usr/bin/mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)' Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists! $ sudo rm -rf /var/run/mysqld $ sudo /etc/init.d/mysql start Starting MySQL database server: mysqld...failed or took more than 6s. Please take a look at the syslog. /usr/bin/mysqladmin: connect to server at 'localhost' failed error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)' Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists! google, xxx resolve: $ sudo chown -R mysql YOURS/mysql $ sudo chgrp -R mysql YOURS/mysql $...

2006-09-13 · wuan

Glib::Cond::timed_wait

申明一个Glib::TimeVal timeout变量,然后 while (yourcond) { timeout.assign_current_time(); timeout.add_seconds(2); // 2 seconds ...timed_wait(*obj, timeout); }

2006-09-11 · wuan

木弟子

setup tools $ sudo apt-get install tor $ sudo apt-get privoxy $ sudo vi /etc/privoxy/config forward-socks4a / localhost:9050 . #(add this line) config firefox HTTP <a href="http://127.0.0.1">127.0.0.1 </a> 8118 SSL \/ FTP \/ ... SOCKS <a href="http://127.0.0.1">127.0.0.1</a> 9050 google THAT’S IT

2006-09-10 · wuan

google办公室

2006年9月5日 下午 04:02:00 发表者:吴丹丹,Google 黑板报小组 昨天休假回来的第一天 9 月 4 日正好赶上我们搬新家 – 从清华科技园的临时办公室正式搬到旁边刚建好的 Google 大厦。刚走进办公室的时候还真有点不敢相信,10 层的大楼,宽敞明亮,到处都洋溢着 Google 的彩色元素,各色的 Google 节日图标挂在墙上&hel...

2006-09-09 · wuan