LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 691|回复: 3

安装vbb失败!

[复制链接]
发表于 2004-5-2 23:22:33 | 显示全部楼层 |阅读模式
这是我的出错信息
正在尝试连接数据库...


Warning: mysql_pconnect(): Host '192.168.1.16' is not allowed to connect to this MySQL server in /var/www/html/bbs/admin/db_mysql.php on line 38

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /var/www/html/bbs/admin/db_mysql.php on line 47

连接失败, 因为你无权连接数据库服务器. 请返回上一步, 确认你输入了正确的登录项.

点击 看看 vBulletin 的网站

下面是一些 是我在webmin设置mysql的画面


--------------------------------------------------------------------------------

MySQL数据库
创建新的数据库

bbs   
linux   
mysql   
test   
创建新的数据库


--------------------------------------------------------------------------------



--------------------------------------------------------------------------------
创建新的数据库权限
数据库 用户 主机 权限
linux root 任何 选择 | 插入 | 更新 | 删除 | 创建 | 删除 | 参考 | 索引 | 改变
test 匿名 任何 选择 | 插入 | 更新 | 删除 | 创建 | 删除 | 参考 | 索引 | 改变
test\_% 匿名 任何 选择 | 插入 | 更新 | 删除 | 创建 | 删除 | 参考 | 索引 | 改变
创建新的数据库权限  

<?php

/////////////////////////////////////////////////////////////
// Please note that if you get any errors when connecting, //
// that you will need to email your host as we cannot tell //
// you what your specific values are supposed to be //
/////////////////////////////////////////////////////////////

// type of database running
// (only mysql is supported at the moment)
$dbservertype='mysql';

// hostname or ip of server
$servername='192.168.1.1';

// username and password to log onto db server
$dbusername='root';
$dbpassword='这里我写上的的密码';

// name of database
$dbname='linux';

// technical email address - any error messages will be emailed here
$technicalemail='webmaster@yoursite.com';

// use persistant connections to the database
// 0 = don't use
// 1 = use
$usepconnect=1;

?>


请教。。是不是我的mysql设置有错啊
 楼主| 发表于 2004-5-2 23:23:17 | 显示全部楼层
为什么说我无权呢?
 楼主| 发表于 2004-5-3 18:45:15 | 显示全部楼层
搞定了。。原来在
// hostname or ip of server
$servername='192.168.1.1';
中我把它为localhost就行了
用IP不行。用默认的主机名就OK了。
 楼主| 发表于 2004-5-3 18:45:20 | 显示全部楼层
搞定了。。原来在
// hostname or ip of server
$servername='192.168.1.1';
中我把它为localhost就行了
用IP不行。用默认的主机名就OK了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表