+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: How set MYSQL ?

  1. #1
    vitoto is offline x10Hosting Member vitoto is an unknown quantity at this point
    Join Date
    Mar 2010
    Posts
    8

    Exclamation How set MYSQL ?

    Hi, we try upload free script but nor know how set mysql user and password, any can help me ?

    Thank you.

  2. #2
    vishal's Avatar
    vishal is offline -::-X10 Guru-::- vishal has a brilliant futurevishal has a brilliant future
    Join Date
    Nov 2009
    Location
    INDIA
    Posts
    5,254

    Re: How set MYSQL ?

    You can create database and database user from Cpanel.
    Regards ~ Vishal
    Giving Reputation (at bottom of my post ) is the best way to encourage the person who helped you on forums.

  3. #3
    Gouri's Avatar
    Gouri is offline Community Paragon Gouri has a brilliant futureGouri has a brilliant futureGouri has a brilliant future
    Join Date
    Oct 2007
    Location
    India
    Posts
    4,502

    Re: How set MYSQL ?

    Quote Originally Posted by vitoto View Post
    Hi, we try upload free script but nor know how set mysql user and password, any can help me ?

    Thank you.
    Create the database in cpanel --> mysql databases and create a user for database then assign all the privileges to that user

    Set those settings here at the scripts config file.

    database host is localhost
    databasename is cpanelusername_databasename
    username is cpanelusername_databaseusername
    Last edited by Gouri; 03-22-2010 at 12:10 PM.
    If you feel my post is useful then click to give Reputation (bottom left corner of this post)

    X10 Hosting | News and Announcements | Premium Hosting | VPS Hosting | Prime Membership

    Tech Community | Gouri

  4. #4
    vitoto is offline x10Hosting Member vitoto is an unknown quantity at this point
    Join Date
    Mar 2010
    Posts
    8

    Question Re: How set MYSQL ?

    Is not working, i am create DB in phpmyadmin and set user/pwd.

    After move files the "expense-report-software" and run .SQL file in phpmyadmin

    SQL Finishing ok and make 6 tables.

    But when ejecute my site : http://vitoto.x10hosting.com/

    Get error : CDatabase::Connect() error

    System use : site.xml

    and parameters is :

    <database type="mysql">
    <server>localhost</server>
    <login>same user used in phpmyadmin</login>
    <password>same pwd used in phpmyadmin</password>
    <default>vitoto.expense</default>
    </database>

    Any idea ?

    Readme is very simple :
    http://vitoto.x10hosting.com/readme.htm
    Last edited by vitoto; 03-22-2010 at 02:59 PM.

  5. #5
    satubis arkon's Avatar
    satubis arkon is offline x10Hosting Member satubis arkon is an unknown quantity at this point
    Join Date
    Mar 2010
    Posts
    17

    Re: How set MYSQL ?

    The database name must be like this: "yourname_databasename" and the user to the database "yourname_username". I hope you understand. You can try to see if the script that you have uploaded is correctly linking to the database and haves the proper user and password.

  6. #6
    vitoto is offline x10Hosting Member vitoto is an unknown quantity at this point
    Join Date
    Mar 2010
    Posts
    8

    Question Re: How set MYSQL ?

    Quote Originally Posted by satubis arkon View Post
    The database name must be like this: "yourname_databasename" and the user to the database "yourname_username". I hope you understand. You can try to see if the script that you have uploaded is correctly linking to the database and haves the proper user and password.
    Data was change to :

    <database type="mysql">
    <server>localhost</server>
    <login>vitoto_vitoto0</login>
    <password>same pwd used in phpmyadmin</password>
    <default>vitoto_expense</default>
    </database>

    Is not working.


  7. #7
    satubis arkon's Avatar
    satubis arkon is offline x10Hosting Member satubis arkon is an unknown quantity at this point
    Join Date
    Mar 2010
    Posts
    17

    Re: How set MYSQL ?

    Quote Originally Posted by vitoto View Post
    Data was change to :

    <database type="mysql">
    <server>localhost</server>
    <login>vitoto_vitoto0</login>
    <password>same pwd used in phpmyadmin</password>
    <default>vitoto_expense</default>
    </database>

    Is not working.

    Did you set the vitoto_vitoto0 user "all privileges" to the vitoto_expense database?
    and at the password is not the password used in phpmyadmin, is the password you have set for the user vitoto_vitoto0. I hope you get it stright. Tell me the result after you test this.

  8. #8
    vitoto is offline x10Hosting Member vitoto is an unknown quantity at this point
    Join Date
    Mar 2010
    Posts
    8

    Re: How set MYSQL ?

    <password>same pwd used in phpmyadmin</password>

    Yes, password is password setting for phpmyadmin when create vitoto_expense in wizard.

    vitoto_vitoto0 have all privileges, remember wizard ask for privileges the user created.

  9. #9
    satubis arkon's Avatar
    satubis arkon is offline x10Hosting Member satubis arkon is an unknown quantity at this point
    Join Date
    Mar 2010
    Posts
    17

    Re: How set MYSQL ?

    Create another database, but don`t use the wizard, make it manual. Here are the steps:
    1 Go to mysql@database (the first one in the left)

    2 At "New Database: vietoto_" write the name of the database and create it

    3 scroll down at "MySQL Users Add New User" and write the name of the user and it`s password (ex:abcd) and create the user

    4 At the bottom you will find "Add User To Database" select the mysql user and the database and click add. You will be asked to set the privileages of the user to the database, check the all priveleages option and submit your request.

    5 At the script use this settings:
    host: localhost
    database: vitoto_databasename
    user: vitoto_username
    password: the password set to the vitoto_username, in my example (abcd)

    you can find a video tutorial here: http://www.cpanel.net/media/tutorials/addmysql.htm
    I wait for your reply to see if you manage to do this straight. If you do all this things as i said your site will have to work, otherwise the problem is somewhere in the script
    Last edited by satubis arkon; 03-23-2010 at 10:18 AM.

  10. #10
    vitoto is offline x10Hosting Member vitoto is an unknown quantity at this point
    Join Date
    Mar 2010
    Posts
    8

    Re: How set MYSQL ?

    hi, is not working.

    you can help using little your time and download apps and try install ?
    http://expense-report-software.org/e...t-download.php

    Script is very very small and simple, not have more the 10 mins the you time.

    Please, thank you again.

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 2
    Last Post: 02-01-2010, 05:45 AM
  2. mySQL error - argument is not a valid MySQL result resource
    By Awesomexr in forum Programming Help
    Replies: 3
    Last Post: 12-20-2009, 04:12 PM
  3. Replies: 3
    Last Post: 02-14-2008, 01:38 PM
  4. Replies: 2
    Last Post: 12-17-2007, 03:00 AM
  5. Replies: 2
    Last Post: 11-20-2007, 11:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers