-
[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
![Vintage Computer, Memorex Storage Unit For Main Frame Computer 1986, Movie Prop picture](/store/img/g/O4EAAOSwQgJisRdE/s-l225/Vintage-Computer-Memorex-Storage-Unit-For-Main-Fra.jpg)
Vintage Computer, Memorex Storage Unit For Main Frame Computer 1986, Movie Prop
$995.00
![IBM FRU26F7630 3390 DASD Hard Drive 10.8” from Vintage Mainframe picture](/store/img/g/lBkAAOSwE2dmYlgV/s-l225/IBM-FRU26F7630-3390-DASD-Hard-Drive-10-8-from-Vint.jpg)
IBM FRU26F7630 3390 DASD Hard Drive 10.8” from Vintage Mainframe
$249.99
![IBM mainframe server cpu IBM93 vintage cpu collector's item picture](/store/img/g/EYQAAOSwzWxmThYD/s-l225/IBM-mainframe-server-cpu-IBM93-vintage-cpu-collect.jpg)
IBM mainframe server cpu IBM93 vintage cpu collector's item
$125.99
![*PAIR* 1960's Vintage GE-600 Series Mainframe Computer PCBs Bitslice Accumulator picture](/store/img/g/-qYAAOSwP21mTl9Q/s-l225/-PAIR-1960-s-Vintage-GE-600-Series-Mainframe-Compu.jpg)
*PAIR* 1960's Vintage GE-600 Series Mainframe Computer PCBs Bitslice Accumulator
$14.95
![Vintage Computer Punch Plug Board Mainframe Panels & Wiring Harness picture](/store/img/g/buQAAOSwRdNmaOVv/s-l225/Vintage-Computer-Punch-Plug-Board-Mainframe-Panels.jpg)
Vintage Computer Punch Plug Board Mainframe Panels & Wiring Harness
$40.00
![IBM mainframe emulation software, OS/360 DOS/360 VM/370 picture](/store/img/g/TlEAAOSwJoxcjjmS/s-l225/IBM-mainframe-emulation-software-OS-360-DOS-360-VM.jpg)
IBM mainframe emulation software, OS/360 DOS/360 VM/370
$12.50
![Rare Retro Vintage IBM Mainframe Board Module w/44 Gold IC Chips / Collector picture](/store/img/g/560AAOSw0S9mRp3a/s-l225/Rare-Retro-Vintage-IBM-Mainframe-Board-Module-w-44.jpg)
Rare Retro Vintage IBM Mainframe Board Module w/44 Gold IC Chips / Collector
$99.95
![AST Bravo MS P/60 Vintage Mainframe Computer Old IBM Style NO HDD picture](/store/img/g/l58AAOSwOIpl~fXd/s-l225/AST-Bravo-MS-P-60-Vintage-Mainframe-Computer-Old-I.jpg)
AST Bravo MS P/60 Vintage Mainframe Computer Old IBM Style NO HDD
$129.95
![JINX Gaming Computer Mainframe Rare Collectible picture](/store/img/g/NCYAAOSwHSVmYzX0/s-l225/JINX-Gaming-Computer-Mainframe-Rare-Collectible-.jpg)
JINX Gaming Computer Mainframe Rare Collectible
$500.00
![DEC Compaq HP AlphaServer AlphaStation DS20e CPU 500Mhz 54-24758-35 KN310-BA picture](/store/img/g/T3YAAOSwvN1fYUiT/s-l225/DEC-Compaq-HP-AlphaServer-AlphaStation-DS20e-CPU-5.jpg)
DEC Compaq HP AlphaServer AlphaStation DS20e CPU 500Mhz 54-24758-35 KN310-BA
$249.00