我有一个sql数据库,我之前使用以下代码连接到该数据库没有问题:$con=mysql_connect("localhost","user192","xxxx") or die ("couldnt connect to sql"); 奇怪的是,我尝试在phpmyadmin中将数据库重命名为其他名称,并更新msql_select_db行中的名称
如何使用query重命名MySQL数据库名称?我通过phpmyadmin尝试了rename数据库,得到了以下错误:
MySQL said:#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server