-
[mysql] how do I use it???
hi,
I am developping my website in php under linux but I need to connect to a mysql db...
It seems I have to copy my db in /etc/lib/mysql/ but how can I access them from my test webpage and what do I need to run to get them working??
Thxs in advance
Ludo
-
Senior Member
registered user
The MySQL part is the hardest part. You really need to go to the MySQL site and download the manual. Really. It's very good.
If you do a Google for
MySQL php
you should find lots of tutorials. Don't expect this to be easy (but it's not rocket science, either).
-
It's difficult to say anything without knowing more details. But one thing to watch out for is the case in Database/Table names. If you copied your db over from Windows (which is case-insensitive) sometimes files names are incorrect on Linux (which is case-sensitive). The correct names for the files are tablename.frm, tablename.MYD, tablename.MYI. Also check the permissions.
If you are working on something that did work in another environment check mysql_error(). If you are starting from the beginning I'll second fingers99: there is lot's of good tutorials out there and the official PHP and MySql manuals are really very good.
- - Edwin
-
Similar Threads
-
By mzee in forum Knoppix DVD
Replies: 17
Last Post: 10-12-2005, 08:48 AM
-
By dr_rude in forum General Support
Replies: 2
Last Post: 10-11-2004, 02:37 AM
-
By sniker in forum Hdd Install / Debian / Apt
Replies: 2
Last Post: 10-08-2004, 03:50 AM
-
By Coume in forum General Support
Replies: 5
Last Post: 08-06-2003, 06:42 AM
-
By Terry@nz in forum General Support
Replies: 3
Last Post: 06-09-2003, 10:01 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![Grandstream GS-HT802 2 Port Analog Telephone Adapter VoIP Phone & Device, Black picture](/store/img/g/cEQAAOSwKIlgze4p/s-l225/Grandstream-GS-HT802-2-Port-Analog-Telephone-Adapt.jpg)
Grandstream GS-HT802 2 Port Analog Telephone Adapter VoIP Phone & Device, Black
$32.00
![Polycom VVX 411 IP VOIP POE Gigabit Telephone [L/N] BUSINESS OFFICE RECEPTION picture](/store/img/g/PZoAAOSwM3xmZJQs/s-l225/Polycom-VVX-411-IP-VOIP-POE-Gigabit-Telephone-L-N-.jpg)
Polycom VVX 411 IP VOIP POE Gigabit Telephone [L/N] BUSINESS OFFICE RECEPTION
$24.00
![Grandstream GXP1620 Small to Medium Business HD IP Phone VoIP Phone and Device picture](/store/img/g/abcAAOSwRdNmXhjA/s-l225/Grandstream-GXP1620-Small-to-Medium-Business-HD-IP.jpg)
Grandstream GXP1620 Small to Medium Business HD IP Phone VoIP Phone and Device
$21.68
![Cisco CP-7965G IP VOIP POE Gigabit Telephone [L/N] BUSINESS OFFICE RECEPTION picture](/store/img/g/GFsAAOSwSttmcmGQ/s-l225/Cisco-CP-7965G-IP-VOIP-POE-Gigabit-Telephone-L-N-B.jpg)
Cisco CP-7965G IP VOIP POE Gigabit Telephone [L/N] BUSINESS OFFICE RECEPTION
$20.00
![Cisco CP-7945G VOIP Phone With Stand & Handset Business IP Phone 7945 picture](/store/img/g/NjUAAOSwEmNmEw4x/s-l225/Cisco-CP-7945G-VOIP-Phone-With-Stand-Handset-Busin.jpg)
Cisco CP-7945G VOIP Phone With Stand & Handset Business IP Phone 7945
$3.00
![Obihai OBI202 2-Port VoIP Phone Adapter - picture](/store/img/g/UckAAOSwEftmajOq/s-l225/Obihai-OBI202-2-Port-VoIP-Phone-Adapter-.jpg)
Obihai OBI202 2-Port VoIP Phone Adapter -
$44.99
![Cisco CP-8845-K9 5 Line IP Video Phone - Charcoal picture](/store/img/g/bNQAAOSwf61mDt9i/s-l225/Cisco-CP-8845-K9-5-Line-IP-Video-Phone-Charcoal.jpg)
Cisco CP-8845-K9 5 Line IP Video Phone - Charcoal
$25.00
![Lightly Used Cisco 8811 Series VoIP phone Factory Reset great condition picture](/store/img/g/cP8AAOSw6mhh~shy/s-l225/Lightly-Used-Cisco-8811-Series-VoIP-phone-Factory-.jpg)
Lightly Used Cisco 8811 Series VoIP phone Factory Reset great condition
$19.95
![Polycom VVX 250 Business IP Phone with 2.8 in. Color Display & Ethernet, Black picture](/store/img/g/AWgAAOSwFuZmTXtC/s-l225/Polycom-VVX-250-Business-IP-Phone-with-2-8-in-Colo.jpg)
Polycom VVX 250 Business IP Phone with 2.8 in. Color Display & Ethernet, Black
$32.89
![Cisco Business Class VOIP Phone CP-8861-K9 IP H42 picture](/store/img/g/JhAAAOSwqxhmQ5go/s-l225/Cisco-Business-Class-VOIP-Phone-CP-8861-K9-IP-H42.jpg)
Cisco Business Class VOIP Phone CP-8861-K9 IP H42
$14.95