Home > Database > Mysql Tutorial > Mysql数据源程序调用方式(使用php脚本语言调用)

Mysql数据源程序调用方式(使用php脚本语言调用)

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 18:08:12
Original
1043 people have browsed it

建立连接 $link_id=mysql_connect(localhost,数据库管理员名,密码); mysql_select_db(数据库管理员名_db); 关闭连接 mysql_close($link_id);

建立连接
$link_id=mysql_connect("localhost","数据库管理员名","密码");
mysql_select_db("数据库管理员名_db");

 

关闭连接
mysql_close($link_id);

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template