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
MAXDB_CONNECT_ERROR(3)							 1						    MAXDB_CONNECT_ERROR(3)

maxdb_connect_error - Returns a string description of the last connect error

SYNOPSIS
string maxdb_connect_error (void ) DESCRIPTION
The maxdb_connect_error(3) function is identical to the corresponding maxdb_connect_errno(3) function in every way, except instead of returning an integer error code the maxdb_connect_error(3) function will return a string representation of the last error to occur for the last maxdb_connect(3) call. If no error has occurred, this function will return an empty string. RETURN VALUES
A string that describes the error. An empty string if no error occurred. EXAMPLES
Example #1 maxdb_connect_error sample <?php $link = maxdb_connect("localhost", "nonexisting_user", ""); if (!$link) { printf("Can't connect to localhost. Error: %s ", maxdb_connect_error()); } ?> The above example will output something similar to: PHP Warning: maxdb_connect(): -4008 POS(1) Unknown user name/password combination <...> Can't connect to localhost. Error: POS(1) Unknown user name/password combination SEE ALSO
maxdb_connect(3), maxdb_connect_errno(3), maxdb_errno(3), maxdb_error(3), maxdb_sqlstate(3). PHP Documentation Group MAXDB_CONNECT_ERROR(3)