Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[已解决] 求解決(1045) notconnect

[复制链接]
amenman 发表于 2012-11-7 16:46:59 | 显示全部楼层 |阅读模式
Discuz! Database Error(1045) notconnect
PHP Debug
No.FileLineCode
1forum.php49discuz_application->init()
2source/class/discuz/discuz_application.php65discuz_application->_init_db()
3source/class/discuz/discuz_application.php373discuz_database::init(%s, Array)
4source/class/discuz/discuz_database.php23db_driver_mysql->connect()
5source/class/db/db_driver_mysql.php74db_driver_mysql->_dbconnect(%s, %s, %s, %s, %s, %s)
6source/class/db/db_driver_mysql.php87db_driver_mysql->halt(%s, %d)
7source/class/db/db_driver_mysql.php218break()

otherbank 发表于 2012-11-8 10:28:04 | 显示全部楼层
数据库不能连接,建议重启下mysql服务
回复

使用道具 举报

 楼主| amenman 发表于 2012-11-8 16:45:43 | 显示全部楼层
怎樣重启下mysql服务

請教一教

虛擬官方發示

If you cannot connect to MySQL server, there could be some causes:
- Incorrect MySQL hostname.
Never use 'localhost' as your MySQL hostname! You can find your MySQL hostname by logging on to members area, entering control panel and clicking on MySQL icon.

- Incorrect MySQL username / password or database name.
You can find / setup MySQL username and database by clicking on MySQL icon from control panel. And you can change MySQL password by clicking on phpMyAdmin icon.

- Database failed to setup.
In a very rare cases MySQL database can fail to setup. To confirm this, please try to enter phpMyAdmin for any database. If you see database there, that means it setup was successful. And if you get access denied error by trying to enter phpMyAdmin, please delete the database and setup the same MySQL database again.
Please note that always you must give about 1 minute for any changes to apply on server.

If you still unable to connect to MySQL you check if it is server or your script problem in this way: if you can enter phpMyAdmin and see you database there, that means everything is working fine on our side. It's a problem with your PHP script.

本人是新手請求一步一步教  我不太憧英文及論壇資料

請提供 檔案名稱及檔案位置 幫助我修改資料

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-11-26 20:50 , Processed in 0.027348 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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