Need Help in Access Error


 
Thread Tools Search this Thread
Top Forums Programming Need Help in Access Error
# 1  
Old 09-21-2012
Need Help in Access Error

Hello Again,

Please help with this link problem.

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'myuser'@'localhost' (using password: XYZ@123)


<?php
function connectTo() {
$host = "localhost";
$db_name = "myDB";
$username = "myUser";
$password = "passs";
$link = mysql_connect("$host", "$username", "$password", "$db_name");
return $link;
}
?>

in another file is this line

$link = connectTo();

Thanks in advance
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

550 Access Error

Hi, we have a FTP server on vSphere on a windows 2008 server platform. One of our Unix machines now cannot send files to it, we checked permissions etc. Can login, when using put events.txt it gives a 550 Access Denied error. Nothing has changed from yesterday when it was working apart from... (1 Reply)
Discussion started by: RonT
1 Replies

2. Shell Programming and Scripting

Mv: cannot access error after nested while loop

I have two methods...create_2_54 and create_2_55 I have added a nested while loop(previously it has just one loop) in create_2_54 the mv command(which comes first in 2_55) is not working. for name in `ls -1 1SMH_WICD_V5_2_5*.txt` ; do mv $name $nametmp.tmp unix2dos -ascii -437 $nametmp.tmp... (2 Replies)
Discussion started by: harish468
2 Replies

3. Solaris

Error: Can't access LM75 devices

Hi Whilst trying to bring out our SunFire V88o server with Solaris 9 we had the following error message: Error: Can't access LM75 devices How can I resolve this problem in order to boot the machine? Thanks Rahman (0 Replies)
Discussion started by: rahmantanko
0 Replies

4. Solaris

Unable to login Solaris 10 Sparc - Data Access Error

Hello everyone, This is the first time I am installing Solaris. I have SunBlade 1500 Wrkstn. I installed Solaris 10 Sparc. The installation went successfully but I don't get the login screen. I get the following error message: Boot device: disk:a File and agrs:- Data Access Error Ok ... (4 Replies)
Discussion started by: mfsaeed
4 Replies

5. Programming

Random Access Iterator Error

I am unable to resolve the below code compilation issue: class A { public: int x; }; void sort_A(TArray<A> &_Atype) { std::stable_sort (_Atype.begin(), _Atype.end()); } bool operator< (const A & _a1, const A & _a2) { return _a1.x < _a2.x; } When we compile using gcc 4.1.2... (4 Replies)
Discussion started by: uunniixx
4 Replies

6. Solaris

solaris 8 hangs and data access error on reboot

Hi using solaris 5.8 on UltraSPARC-IIi 360MHz. I know it is an old hardware but similiar hardware is running fine. here is the issue, System booted : works okay for some time then display was hung so system was rebooted ..it gave data access error. again rebooted and it came up... (6 Replies)
Discussion started by: upengan78
6 Replies

7. Linux

Error 24: Attempt to access block outside partition

Grub throwing Error:: Error 24: Attempt to access block outside partition. done the following root (hd0,0) After that when trying to load kernel it is throwing the error. Please guide. new to grub. Thx, Siva. (0 Replies)
Discussion started by: Sivaswami
0 Replies

8. AIX

Strange error with file access permissions

All, I am trying to copy some data from /admin/reports/Sept/ccn/c_ivsstr01 to /home/users/myhomedir and I am getting an error I have never seen before: The file access permissions do not allow the specified action. The permissions on the file are -rw-r--r-- and I am the owner of the file... (3 Replies)
Discussion started by: kjbaumann
3 Replies

9. UNIX for Advanced & Expert Users

Data Access Error

Dear Reader, My Sun Machine comes to halt with a message 'Data Access Error'. What / Where could be wrong..?? Thanks in Advance.... (5 Replies)
Discussion started by: joseph_shibu
5 Replies

10. UNIX for Dummies Questions & Answers

Need help to access/mount so to access folder/files on a Remote System using Linux OS

Hi I need to access files from a specific folder of a Linux system from an another Linux System Remotely. I know how to, Export a folder on One SCO System & can access the same by using Import via., NFS in the Sco Unix SVR4 System using the scoadmin utility. Also, I know to use mount -t ... (2 Replies)
Discussion started by: S.Vishwanath
2 Replies
Login or Register to Ask a Question
MYSQLI_CONNECT_ERROR(3) 						 1						   MYSQLI_CONNECT_ERROR(3)

mysqli::$connect_error - Returns a string description of the last connect error

       Object oriented style

SYNOPSIS
string$mysqli->connect_error () DESCRIPTION
Procedural style string mysqli_connect_error (void ) Returns the last error message string from the last call to mysqli_connect(3). RETURN VALUES
A string that describes the error. NULL is returned if no error occurred. EXAMPLES
Example #1 $mysqli->connect_error example Object oriented style <?php $mysqli = @new mysqli('localhost', 'fake_user', 'my_password', 'my_db'); // Works as of PHP 5.2.9 and 5.3.0. if ($mysqli->connect_error) { die('Connect Error: ' . $mysqli->connect_error); } ?> Procedural style <?php $link = @mysqli_connect('localhost', 'fake_user', 'my_password', 'my_db'); if (!$link) { die('Connect Error: ' . mysqli_connect_error()); } ?> The above examples will output: Connect Error: Access denied for user 'fake_user'@'localhost' (using password: YES) NOTES
Warning The mysqli->connect_error property only works properly as of PHP versions 5.2.9 and 5.3.0. Use the mysqli_connect_error(3) function if compatibility with earlier PHP versions is required. SEE ALSO
mysqli_connect(3), mysqli_connect_errno(3), mysqli_errno(3), mysqli_error(3), mysqli_sqlstate(3). PHP Documentation Group MYSQLI_CONNECT_ERROR(3)