Koozali.org: home of the SME Server

New user (create Database and user for PHP list

New user (create Database and user for PHP list
« on: December 16, 2009, 05:57:08 PM »
Hi all

I'm a newby and I just setup my machine running SME Server.

I wan't to use this to install php list and send out my personal newsletters but before i install php list I need some help to create a database and a user with the right permissions.

I think the code to create the database is:
mysqladmin create 'dbname' --default-character-set=utf8

But what is the sintaxe to create a user with the right permissions for this database?


thanks
Sergio

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: New user (create Database and user for PHP list
« Reply #1 on: December 16, 2009, 07:03:57 PM »
Hi all

I'm a newby and I just setup my machine running SME Server.

I wan't to use this to install php list and send out my personal newsletters but before i install php list I need some help to create a database and a user with the right permissions.

I think the code to create the database is:
mysqladmin create 'dbname' --default-character-set=utf8

But what is the sintaxe to create a user with the right permissions for this database?
Next time please try and search. I am sure you would have found this: http://wiki.contribs.org/MySQL
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Re: New user (create Database and user for PHP list
« Reply #2 on: December 16, 2009, 09:29:03 PM »
Hello

Thank you for your reply, but if you have looked at my:
"I think the code to create the database is:
mysqladmin create 'dbname' --default-character-set=utf8"

Can you see that this code was inside that documentation you just send me, I allredy looked at it but in there the exaple when creating a user for the database is a user with read only rights and this is my question:

How to create a user with all the necessary rights.

Thanks in advance
sergio

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: New user (create Database and user for PHP list
« Reply #3 on: December 16, 2009, 09:35:25 PM »
Sergio, you shoul read again that page, starting from here

starting from "You probably want to change: " you'll find exactly what you are asking for

please, take some time to read all the documentation, thank you

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: New user (create Database and user for PHP list
« Reply #4 on: December 16, 2009, 10:13:00 PM »
Can you see that this code was inside that documentation you just send me, I allredy looked at it but in there the exaple when creating a user for the database is a user with read only rights and this is my question:

How to create a user with all the necessary rights.
I wrote large parts of it, so yes I know what is in there.

For specific MySQL commands you should read the MySQL manual, although the configuration file and login in to MySQL might be a little different on SME Server inside the MySQL engine nothing is different to normal as described in the manual: http://dev.mysql.com/doc/refman/4.1/en/
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Re: New user (create Database and user for PHP list
« Reply #5 on: December 16, 2009, 11:23:51 PM »
Thank you to both of you.

Regards
Sergio