Author Topic: [Tutorial] Creating a MySQL Database and Username  (Read 1233 times)

0 Members and 1 Guest are viewing this topic.

Offline Neša

  • Administrator
  • *
  • Posts: 1730
  • Karma: 1704
  • Gender: Male
  • SMF Version: 1.1.14
[Tutorial] Creating a MySQL Database and Username
« on: March 23, 2008, 03:29:41 AM »


The easiest way to make a database and assign a username to it is by using the MySQL wizard in you're cpanel.



Put in the name you would like for your database, we have called ours database1. What a genius name :)



Now we pick a username and password.



Now we have to assign the permissions, we want this user to have all the permission on database1 so we click on "All Privileges"



This is telling us that we have successfully made the database and username. Now click on return home



Click on the MySQL Databases Link



You should see you're database and the username that is assigned to it. In our case our full database name is smftest_database1 and our full username is smftest_user2. This is the full name and what you need to fill in when you install SMF or any other script that needs MySQL access.
« Last Edit: March 23, 2008, 11:37:57 AM by bigguy »

Offline sheryltoo

  • Sr. Member
  • *
  • Posts: 271
  • Karma: 42
  • Gender: Female
    • Sheryl's Page
  • SMF Version: smf 2.0 RC1
Re: [Tutorial] Creating a MySQL Database and Username
« Reply #1 on: February 10, 2009, 10:09:25 AM »
I've set up databases before and I want to set up one again only it was awhile ago so I'm trying to refresh my memory on how to do it.  I thought I rememberd having to set some permissions using CHmod. This isn't mentioned in this tutorial. Does that mean I don't need to change any other permissions after I set up a new database?
Sheryl

Offline Neša

  • Administrator
  • *
  • Posts: 1730
  • Karma: 1704
  • Gender: Male
  • SMF Version: 1.1.14
Re: [Tutorial] Creating a MySQL Database and Username
« Reply #2 on: February 10, 2009, 05:45:50 PM »
You chmod files not the database, after its created, you need to give access to it. You pick a user and give him admin access to the database, so he/she can make tables and do other fancy things :)