易截截图软件、单文件、免安装、纯绿色、仅160KB

php连接mysql测试和配置


php连接mysql测试代码:
$link=mysql_connect('localhost','root','123456');
if(!$link) echo "失败!";
else echo "成功!";
mysql_close();
?>
运行代码出现:Call   to   undefined   function   'mysql_connect()'… 失败
百度找到结果是PHP+MYSQL 环境没配置好, php5 的默认 mysql 是关闭的
将php_mysql.dll和libmysql.dll文件拷贝至c:\winnt\system32中(我漏了libmysql.dll)
找到php.ini中的;extension=php_mysql,去掉前面的";"   重启服务器.


相关文档:

在mysql数据库中修改root的密码

下面我给大家介绍几种在mysql数据库中修改root密码的方法
方法一:
原始密码是 ckh
mysql -uroot -pckh
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 7 to server version: 5.0.22-community-nt
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
my ......

mysql在cmd下的一些语句

设置字段的默认值:
    创建表的时候:create table
tablename(columnname columntype default
defaultvalue);
    修改表的时候:alter table
tablename alter column
columnname set 
default
deflaultvalue; ......

如何用C 编写PHP扩展

PHP取得成功的一个主要原因之一是她拥有大量的可用扩展。web开发者无论有何种需求,这种需求最有可能在PHP发行包里找到。PHP发行包包括支持各种数据库,图形文件格式,压缩,XML技术扩展在内的许多扩展。
  扩展API的引入使PHP取得了巨大的进展,扩展API机制使PHP开发社区很容易的开发出几十种扩展。。扩展主要的思想是 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号