How to access the database of this webpage

Source: Internet
Author: User
How to enter the database of this webpage $ sqlurl = "211.149.247.151 ";//


$ Sqlname = "suji ";//

$ Sqlusername = "suji ";//


$ Sqlpassword = "mars99 ";//

$ Sqllit = mysql_connect ($ sqlurl, $ sqlusername, $ sqlpassword );//
If (! $ Sqlbench)
{
Die ('could not connect: '. mysql_error ());//
}


Mysql_query ("set names UTF8 ");//

Mysql_select_db ("suji", $ sql1 );//
$ Result = mysql_query ("SELECT * FROM passlist ");//

Echo "passlist:
";//
While ($ word = mysql_fetch_array ($ result ))//?
{



Echo $ word ['passname']; //

}

Mysql_close ($ sql1 );//


Reply to discussion (solution)

Online. Hope you can help me. thank you.

Open the terminal and enter mysql-u suji-p-h 211.149.247.151.
Enter mars99

Upstairs !!!!!!!!!

Open the terminal and enter mysql-u suji-p-h 211.149.247.151.
Enter mars99


Where is the terminal? Sorry. I'm Tom.

Your code is fine, but remote access to the database requires database authorization.

Your code is fine, but remote access to the database requires database authorization.


11.149.247.151
Is this input into the database?

What does it mean? The database address is what the database administrator told you. you cannot define it yourself.

What does it mean? The database address is what the database administrator told you. you cannot define it yourself.


Http://www.onevisa.com.cn/test.php
I don't know how to bring my name to his database.

The ip address of www.onevisa.com.cn is 211.149.247.151.
If $ sqlurl = "211.149.247.151" cannot be used
$ Sqlurl = "localhost ";

Are you sure MySQL is available?

Weak: Do you need the $ sqlname parameter?


Open the terminal and enter mysql-u suji-p-h 211.149.247.151.
Enter mars99


Where is the terminal? Sorry. I'm Tom.



The terminal is the command line... Cmd...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.