function mysql_read_single_row($sql, $array_of_values) {
//create a connection$DBH = new PDO("mysql:host=".CONST_MYSQL_HOST.";dbname=".CONST_MYSQL_DBNAME, CONST_MYSQL_RUSER, CONST_MYSQL_RPASS);
在用一个更大更快的mysql替换了我的磁盘之后,我正在尝试安装MySQL。在ubuntu上安装mysql-server后,运行select user,host,authentication_string from user where user='root';时,authentication_string我设置了密码,但登录到root的唯一方法是使用sudo运行MySQL命令,如果我试图输入密码,如果我运行mysql -u root -p,它就不能工