工作中~
分类: LINUX
2008-09-12 13:22:09
#aptitude install mysql-server-5.0 |
#aptitude install apache2 |
#aptitude install bugzilla |
#mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 16 Server version: 5.0.32-Debian_7etch6-log Debian etch distribution Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql>exit |
#mysqladmin -u root password "xxxxxx" |
#mysql -u root -pxxxxxx |
#mysql -V |
mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | bugzilla | | mysql | +--------------------+ 3 rows in set (0.00 sec) |
mysql>use mysql; |
mysql> select host,user,password from user; +-----------+------------------+-------------------------------------------+ | host | user | password | +-----------+------------------+-------------------------------------------+ | localhost | root | | | root | root | | | localhost | debian-sys-maint | *2DA6F8F346D49553AA43B01EC2656FB363BD6692 | | localhost | bugzilla | *E44A8B925465DD46776CACDFED90A0DEF54ECF24 | +-----------+------------------+-------------------------------------------+ 4 rows in set (0.00 sec) |
mysql>delete from user where user=""; |
mysql>update user set password=password('bugzilla') where user='bugzilla'; |
mysql>FLUSH PRIVILEGES; |
mysql>exit |
# vi /etc/apache2/conf.d/bugzilla |
Alias /bugzilla/ "/var/www/bugzilla/" |
#/etc/init.d/apache2 restart |
#nano /etc/bugzilla/localconfig |
# # How to access the SQL database: # $db_host = "localhost"; # where is the database? $db_port = 3306; # which port to use $db_name = "bugzilla"; # name of the MySQL database $db_user = "bugzilla"; # user to attach to the MySQL database # # Some people actually use passwords with their MySQL database ... # $db_pass = "bugzilla"; |
# /usr/share/bugzilla/lib/checksetup.pl |