Welcome to Geeklog, Anonymous Tuesday, November 05 2024 @ 07:34 am EST
Geeklog Forums
SQL path
Joe
Anonymous
I'm using Go Daddy to host my site. I've created an SQL database but I don't know how to enter the path in the config.php file. What is the proper formatting for the sql server or "DB Host" field. All I have from Go Daddy is the following
mysqlXXX.secureserver.net
Do I need to add slashes or "http://" to that?
getting the following errors
Warning: main(http://mysite/blogfiles/system/databases/mysql.class.php): failed to open stream: HTTP request failed! HTTP/1.1 404 in /home/blogfiles/system/lib-database.php on line 117
mysqlXXX.secureserver.net
Do I need to add slashes or "http://" to that?
getting the following errors
Warning: main(http://mysite/blogfiles/system/databases/mysql.class.php): failed to open stream: HTTP request failed! HTTP/1.1 404 in /home/blogfiles/system/lib-database.php on line 117
5
5
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The DB host is just the host name - no http, no slashes. "mysqlXXX.secureserver.net" is fine.
You problem is that you entered a URL where you should have entered a path. $_CONF['path'] should not start with "http://".
bye, Dirk
You problem is that you entered a URL where you should have entered a path. $_CONF['path'] should not start with "http://".
bye, Dirk
5
5
Quote
Joe
Anonymous
I'm getting a similiar but different error now.
Warning: main(/blog.mysite.com/blogfiles/system/databases/mysql.class.php): failed to open stream: No such file or directory in /home/content/html/blog/blogfiles/system/lib-database.php on line 117
Fatal error: main(): Failed opening required '/blog.mysite.com/blogfiles/system/databases/mysql.class.php' (include_path='.:/usr/local/lib/php') in /home/content/html/blog/blogfiles/system/lib-database.php on line 117
I removed the http:// from in front of the path fields, but I did put a forward slash there, and then tried it without the forward slash.
Warning: main(/blog.mysite.com/blogfiles/system/databases/mysql.class.php): failed to open stream: No such file or directory in /home/content/html/blog/blogfiles/system/lib-database.php on line 117
Fatal error: main(): Failed opening required '/blog.mysite.com/blogfiles/system/databases/mysql.class.php' (include_path='.:/usr/local/lib/php') in /home/content/html/blog/blogfiles/system/lib-database.php on line 117
I removed the http:// from in front of the path fields, but I did put a forward slash there, and then tried it without the forward slash.
4
5
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Joe: Warning: main(/blog.mysite.com/blogfiles/system/databases/mysql.class.php): failed to open stream: No such file or directory in /home/content/html/blog/blogfiles/system/lib-database.php on line 117
Please try to learn the difference between a URL (what you type into your browser) and a path (on the webserver's file system).
Form the error, I'd say your path should read
$_CONF['path'] = '/home/content/html/blog/blogfiles/';
bye, Dirk
3
6
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
All times are EST. The time is now 07:34 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content