![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Nov 2005
Posts: 4
OS: XP
|
My friend has a server and he give me 500 MB on his server. This is a Linux server and supprt PHP script.
Now I want to use database with mySQL on my website. What I must do ? When I study PHP, I test my PHP script on localhost. I have no experience remote server. I need all your help. |
|
|
|
|
|
#4 (permalink) |
|
Professor/Moderator, TSF Design School
Join Date: Jun 2005
Location: Australia
Posts: 2,382
OS: Windows XP SP2
|
Hey Doan_Du,
XZanE does have a point. The best combination is PHP and MySQL. I understand the differneces between but they are practically made for each other. I don't own a Linux System so I have never tried setting up a server there. All that will be needed is to have the server read your mySQL nad php code etc. Please specify which server to see if I can help you further. Have a fun and computing day, Grove ![]()
__________________
==========================================
Get Help: TSF Security Forum | HijackThis | MB's 5 Step Process Get Clean: AdAware SE | Spybot S&D | CWShredder | Ewido | CleanUp! Get Protected: SpywareBlaster | SpywareGuard | Windows Updates | IE-SpyAd If TSF has helped you, please consider making a donation to help keep the board running. |
|
|
|
|
|
#5 (permalink) |
|
Manager, Design
|
Modifying mySQL databases is easy! I use them myself on my own server so I'll tell you how it can be done. PHP and mySQL do work wonders together, especially for forums like this one and other things that you want dynamic updating with. In order to actually access the databses you'll need a program that can tap into them. I recommend mySQL Control Center. last I remember it's free and works great for working on databases. You can create servers, drop servers, create databses, add users, set permissions, query, all of that!
__________________
![]() ![]() ----------------------------- There are no dumb questions, unless a customer is asking them. Help in the fight against cancer and other serious illnesses.
|
|
|
|
|
|
#6 (permalink) |
|
Register user
Join Date: Nov 2005
Location: Australia
Posts: 66
OS: Dual-Boot: Microsoft Windows XP x64 Edition & Red Hat Linux Fedora Core 4
|
By the sounds of it you don't actually have a MySQL Database, and if not then kindly ask your friend if you can get one (Ask for phpmyadmin too, as it is a good program for SQL)
Although if you do have access to a Database than you should probably follow the advice of the other ppl (It's still worth asking for phpmyadmin) |
|
|
|
|
|
#7 (permalink) |
|
Registered User
|
to check for mysql do
telnet localhost 3306 if it connects then mysql is running. if he doesnt have telnet installed do netstat -pan if you see a line like: tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN - then mysql is listening on 3306 like it should. Now if he has it he must give you an account on it (unless you have root and you can give yourself an account) and after you get the account wget the phpmyadmin code. untar then nano/pico/vi config.inc.php and in the first server block $cfg['Servers'][$i]['controluser'] = ''; // MySQL control user settings // (this user must have read-only $cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user" make those blank ( for security reasons) and change $cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication method (config, http or cookie based)? that line to http like i have (its default config) this way when you go to phpmyadmin you will get a .htaccess like box asking for username and password. If you left it as config then you would have to fill contorluser and controlpass and anyone that found your phpmyadmin url would have access to your db. Good Luck!
__________________
My new homepage: |
|
|
|
![]() |
| Thread Tools | |
|
|