N
Nikos
This is soem per of my make.pl
Its supposed to create first time the database nikos_db or if its
already there to just delete it and recreate it.
$db = ($ENV{'SERVER_NAME'} ne 'nikolas.50free.net')
? DBI->connect('DBI:mysql:nikos_db', 'root', '')
: DBI->connect('DBI:mysql:nikos_db:50free.net', 'nikos_db', '*****')
or print font({-size=>5, -color=>'Lime'}, $DBI::errstr) and exit 0;
$db->do( "drop database if exists nikos_db" );
$db->do( "create database nikos_db" );
$db->do( "use nikos_db" );
If the database alrady exists no problem but if it want to be creates at
the time then the first db gives an error when i run make.pl and i must
then manually create it through mysql statemets in console.
What can i do so that Perl create the database nikos_db if it never benn
created?
Its supposed to create first time the database nikos_db or if its
already there to just delete it and recreate it.
$db = ($ENV{'SERVER_NAME'} ne 'nikolas.50free.net')
? DBI->connect('DBI:mysql:nikos_db', 'root', '')
: DBI->connect('DBI:mysql:nikos_db:50free.net', 'nikos_db', '*****')
or print font({-size=>5, -color=>'Lime'}, $DBI::errstr) and exit 0;
$db->do( "drop database if exists nikos_db" );
$db->do( "create database nikos_db" );
$db->do( "use nikos_db" );
If the database alrady exists no problem but if it want to be creates at
the time then the first db gives an error when i run make.pl and i must
then manually create it through mysql statemets in console.
What can i do so that Perl create the database nikos_db if it never benn
created?