webForumDet fria alternativet

Ett PHP skript som använder MySQL databas...

1 svar · 146 visningar · startad av klas19

klas19Medlem sedan juni 2001119 inlägg
#1

Jag har tidigare bara hållt på lite med ASP och Acess databaser, men nu har jag laddat ner en färdigt skript i PHP som använder MySQL, I Readme filen så står det hur man ska installera det, så här står det:
Unzip and Untar the package into the directory you want to use on you web
server, if you're unsure where that is, ask you system administrator.

tar -zxvf PHP-Nuke.tar.gz

Change to the sql/ directory and there is a file called "nuke.sql"
this file contains the commands to build the database structure,
tables and the default data.

  1. Create a database called, for example, nuke:

mysqladmin create nuke

  1. Now fill the databases with the tables in nuke.sql file:

mysql nuke < nuke.sql

Någon som begriper det här?

Bones_JuniorMedlem sedan maj 200139 inlägg
#2

Om du använder linux/unix så är det bara att göra som det står, annars får du nog göra lite annorlunda. :-)

tar -zxvf PHP-Nuke.tar.gz
packar upp arkivet

mysqladmin create nuke
skapar databasen nuke i MySQL

mysql nuke < nuke.sql
importerar tabeller från nuke.sql till databasen nuke

Hoppas att det hjälper lite.

130 ms totalt · 3 externa anrop · v20260731065814-full.30151723
0 ms — hämta forumlista (cache)
0 ms — hämta statistik (cache)
127 ms — hämta tråd, inlägg och bilagor (db)