New password for the MySQL "root" user: <-- yourrootsqlpassword Repeat password for the MySQL "root" user: <-- yourrootsqlpassword Web server to reconfigure automatically: <-- apache2
CREATE DATABASE vsftpd; GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP ON vsftpd.* TO 'vsftpd'@'localhost' IDENTIFIED BY 'ftpdpass'; GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP ON vsftpd.* TO 'vsftpd'@'localhost.localdomain' IDENTIFIED BY 'ftpdpass '; FLUSH PRIVILEGES;
ftpdpass換成你想要的密碼,然後創建表:
USE vsftpd;
CREATE TABLE `accounts` ( `id` INT NOT Null AUTO_INCREMENT PRIMARY KEY , `username` VARCHAR( 30 ) NOT Null , `pass` VARCHAR( 50 ) NOT Null , UNIQUE ( `username` ) ) ENGINE = MYISAM ;