How to create databse in mysql at run time

db , mysql India
  • 13 years ago

    can anyone help me to create database at run time...without going to the command prompt i.e. from progamming code

  • 13 years ago
    execute query,

    CREATE DATABASE name_your_db; //simple

    CREATE DATABASE name_your_db DEFAULT CHARACTER SET latin2 COLLATE latin2_czech_ci; //for set character

    //php
    <?
    mysql_query("create database my_db");
    ?>












Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“I invented the term Object-Oriented, and I can tell you I did not have C++ in mind.” - Alan Kay