MySQL 选择数据库
时间:2021-07-01 10:21:17
帮助过:2人阅读
$dbhost = 'localhost:3306'; $dbuser = 'root'; $dbpass = '123456'; $conn = mysqli_connect($dbhost, $dbuser, $dbpass);if(! $conn ){
die('连接失败: ' . mysqli_error($conn));}echo '连接成功';mysqli_select_db($conn, 'RUNOOB' );mysqli_close($conn);?>
MySQL 选择数据库
标签:mysql 选择数据库