- 论坛徽章:
- 0
|
——实在不行就在涉及库表内容的地方重来一遍
原帖由 wild_li 于 2006-4-29 17:32 发表
错误信息如下:
Notice: Use of undefined constant DB_PORTABILITY_DELETE_COUNT - assumed 'DB_PORTABILITY_DELETE_COUNT' in /usr/local/lib/php/DB/mysql.php on line 823
Notice: Use of undefined co ...
——这句话的意思象是抽象层包出错? 出现大量Notice是没有关系的,我也有,但出现 fatal error 是需要解决的。感觉你这个错说的是违反什么约束了。
——有个思路,就是有时重来一次比查问题反而快。那么现在干掉pdns用户,干掉binddb, 重建binddb,重新在binddb上应用文中脚本建初始表,重建pdns用户并授权它拥有binddb的一切权限,然后进行如下检查——
————试试手工连库:
/home/mysql/bin/mysql -u pdns -p12345678 -h localhost binddb 能否进去。这里是确认连库是否正确。
进去后 show tables;
此时应当看到事先为 PowerAdmin 界面在运行 install.php 前所准备的表。
然后通过查看 config.php.inc 中关于数据库连接所需配置及对pdns用户的权限要求:
- /* Edit all fields below here to your information */
- /* MySQL Configuration */
- //
- // Host we should connect to.
- // This could be for example "localhost" or a sock file
- $dbhost = 'localhost';
- //
- // Your user with SELECT/INSERT/UPDATE/DELETE/CREATE access to $dbdatabase
- $dbuser = 'pdns';
- //
- // Youe password, the password for $dbuser
- $dbpass = 'yourpassword4pdns';
- // Your database, the database you want to use for PowerDNS (or are already using)
- $dbdatabase = 'binddb';
- // The dsn you want to use (which database you want to use)
- // Tested is mysql and pgsql default is mysql
- $dbdsntype = 'mysql';
复制代码
注意这句话——
// Your user with SELECT/INSERT/UPDATE/DELETE/CREATE access to $dbdatabase
都OK了,就在你的浏览器中 http://.../.../install.php 再看。
......
对了,mysql 最好在 4.1 以上,另外我用的 php 4.4.1
[ 本帖最后由 bigmoyo 于 2006-5-5 11:43 编辑 ] |
|