最近服务器速度越来越慢,有时候服务器负载经常到达十几甚至看到过二十。博客打开的速度也慢了起来,今天花…
Archives
Links
-
Recent Comments
最近服务器速度越来越慢,有时候服务器负载经常到达十几甚至看到过二十。博客打开的速度也慢了起来,今天花…
mysql有一个功能就是可以log下来运行的比较慢的sql语句,默认是没有这个log的,为了开启这个功能,
要修改…
MySQL中设置自增字段
alter table album change ALBUM_ID ALBUM_ID bigint not null auto_increment;
alter table album auto_increment=1;
创建:
mysql>create table cc(id int auto_increment,name varchar(20),primary key(id));
修改:
mysql> alter table cc change id id int primary key auto_increment;
…
[mysqld]
#port = 3306
#socket = /tmp/mysql.sock
#socket = /var/lib/mysql/mysql.sock
#skip-locking
key_buffer = 128M
max_allowed_packet = 1M
table_cache = 256
sort_buffer_size = 1M
net_buffer_length = 16K
myisam_sort_buffer_size = 1M
max_connections=120
#addnew config
wait_timeout =120…
ubuntu实在是太牛了,很简单的方法就安装完毕web服务器,只需要按顺序执行以下命令即可:
Once again, here’s my updated simple installation of Apache, PHP and MySQL in Ubuntu 8.04 LTS (Hardy Heron) Server.
Install SSH Client and Server (for my remote access)
sudo apt-get install ssh
Install Database Server
sudo apt-get install mysql-server-5.0
Install Apache HTTP Server
sudo apt-get install apache2
Install PHP5 and Apache PHP5 module
sudo apt-get install php5 libapache2-mod-php5
Restart Apache
sudo /etc/init.d/apache2 restart
Optionally, install phpMyAdmin
sudo [...]