Resource icon

Server "acdben" PHP Script for automatic DB creation 1

No permission to download

Сорок два

Administrator
Staff member
Admin
Content Creator
Guide Author
Seller
Premium
Сорок два submitted a new resource:

"acdben" PHP Script for automatic DB creation - acdben

You not oblige to download the package, it's a simple PHP script that I paste here :


PHP:
<?php
$link = mysql_connect('localhost','root','root');
if (!$link) {
    die('connection error:' . mysql_error());
}

$sql = 'CREATE DATABASE a1_masterserver_rc_4_0_02 CHARACTER SET utf8 COLLATE utf8_general_ci ;';
if (mysql_query($sql, $link)) {
    echo "base a1_masterserver_rc_4_0_02 successfully created!\n";
} else {
    echo 'error when creating a database:' . mysql_error() . "\n";
}

$sql...

Read more about this resource...
 

Top Bottom