oprette MySQL database
Hej...Jeg har lige købt MySQL, men hvordan virker det? Jeg skulle gerne have dette script til at virke, hvor der blandt andet står:
Add a user to MySQL named "webuser". You can do this with the following
commands:
mysql -u root -p
<enter your MySQL root password>
use mysql;
insert into user values ('localhost', 'vote', password('vote'), 'Y','Y','Y','Y','N','N','N','N','N','N','N','N','N','N');
flush privileges;
exit
This creates a user with the name "vote" and the password "vote". This user
can only log in from the local system. This is secure enough for most people.
If you change the password or username, be sure to also change them in the
file prep.php3
Run the MySQL script. This will create a database, table, and index. It
will also grant read/write/update/delete access to the user "vote". You
can do this with:
mysql -u root -p < vote.sql
