הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   PHP | התחברות למסד (GODDADY) (https://hosts.co.il/forums/showthread.php?t=60406)

Labs 26-02-08 19:54

PHP | התחברות למסד (GODDADY)
 
שלום לכולם
ולא מזמן רכשתי איכוסן מגודדי לשנה
אז עכשיו אני בונה אתר טיש לי קובץ קונפיג שמתחבר למסד נתונים לפי הקוד הנ"ל:
PHP קוד:

<?php
$dblc 
"localhost";
$dblu "ladart_lado";
$dblp "*****";
$dbll "ladart_lado";

mysql_connect($dblc$dblu$dblp) or die(mysql_error());
mysql_select_db($dbll) or die(mysql_error());
?>

ואני מקבל את השגיאה הבאה:

Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2) in /home/content/l/a/d/ladart/html/admin/config.php on line 7
Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2)

על השרת רצה גירסאת PHP 5 אני לא יודע עד כמה זה משנה

אשמח לעזרה
תודה מראש

Xinxy 26-02-08 20:02

ציטוט:

נכתב במקור על ידי FartBoy (פרסם 612025)
שלום לכולם
ולא מזמן רכשתי איכוסן מגודדי לשנה
אז עכשיו אני בונה אתר טיש לי קובץ קונפיג שמתחבר למסד נתונים לפי הקוד הנ"ל:
PHP קוד:

<?php
$dblc 
"localhost";
$dblu "ladart_lado";
$dblp "*****";
$dbll "ladart_lado";

mysql_connect($dblc$dblu$dblp) or die(mysql_error());
mysql_select_db($dbll) or die(mysql_error());
?>

ואני מקבל את השגיאה הבאה:

Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2) in /home/content/l/a/d/ladart/html/admin/config.php on line 7
Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2)

על השרת רצה גירסאת PHP 5 אני לא יודע עד כמה זה משנה

אשמח לעזרה
תודה מראש

אני לא בטוח עד כמה זה משנה
אבל תנסה ככה:
PHP קוד:

<?php
$dblc 
"localhost";
$dblu "ladart_lado";
$dblp "*****";
$dbll "ladart_lado";

$connect mysql_connect($dblc$dblu$dblp) or die(mysql_error());
$db mysql_select_db($dbll$connect) or die(mysql_error());
?>

ואתה בטוח שזה LOCALHOST? אולי זה שונה בGODADDY

Labs 26-02-08 20:28

ציטוט:

נכתב במקור על ידי Xinxy (פרסם 612027)
אני לא בטוח עד כמה זה משנה
אבל תנסה ככה:
PHP קוד:

<?php
$dblc 
"localhost";
$dblu "ladart_lado";
$dblp "*****";
$dbll "ladart_lado";

$connect mysql_connect($dblc$dblu$dblp) or die(mysql_error());
$db mysql_select_db($dbll$connect) or die(mysql_error());
?>

ואתה בטוח שזה LOCALHOST? אולי זה שונה בGODADDY

אותה שגיאה

ולגבי השאלה השניה אני לא יודע

pirsomet 26-02-08 20:46

http://help.godaddy.com/topic/67/article/39

Labs 26-02-08 21:17

ציטוט:

נכתב במקור על ידי pirsomet (פרסם 612046)

אוקיי תודה מצאתי את זה
Host Name:
p50mysql107.secureserver.net

עכשיו אני שם את זה במקום LOCALHOST נכון?


Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ladart_lado'@'208.109.181.15' (using password: YES) in /home/content/l/a/d/ladart/html/admin/config.php on line 7
Access denied for user 'ladart_lado'@'208.109.181.15' (using password: YES)

ובדקתי את הסיסמא כמה פעמים

mayden 26-02-08 21:34

  1. Log in to your Account Manager.
  2. In the My Products section, select Hosting Account List.
  3. Next to the hosting account you want to modify, click Open.
  4. In the Databases section of the Hosting Control Center, click the MySQL icon.
  5. From your list of databases, click the Pencil icon next to the database you want more information about.
  6. The Database Information page displays. You will find the host name for your database on this page.
מניסיוני עם גודדי, יש לך שם את הקוד להתחברות עם הסיסמא והכל. אני לא מבין למה אתה מתאמץ.

Labs 26-02-08 21:39

ציטוט:

נכתב במקור על ידי mayden (פרסם 612059)
  1. Log in to your Account Manager.
  2. In the My Products section, select Hosting Account List.
  3. Next to the hosting account you want to modify, click Open.
  4. In the Databases section of the Hosting Control Center, click the MySQL icon.
  5. From your list of databases, click the Pencil icon next to the database you want more information about.
  6. The Database Information page displays. You will find the host name for your database on this page.
מניסיוני עם גודדי, יש לך שם את הקוד להתחברות עם הסיסמא והכל. אני לא מבין למה אתה מתאמץ.

MySQL Database Information
Status:
Setup
Host Name:
p50mysql107.secureserver.net
Database Name:
lado
Database Version:
5.0
Description:
lad-art5
User Name:
lado

כל מה שיש שם


עריכה:
מצאתי :) אפשר לנעול


כל הזמנים הם GMT +2. הזמן כעת הוא 05:09.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ