mySQL Help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • smartikat
    New Member
    • Feb 2010
    • 1

    [Forum] mySQL Help

    I have a very Slow mySQL server from my host. I found a better server, but I am at a lost of how to switch my site to connect to this new server. Please help

    Thanks
  • Lynne
    Former vBulletin Support
    • Oct 2004
    • 26255

    #2
    I'm not sure what you are asking for help with here. You want to know how to set up to use MySQL on another server? You would edit your config.php file:
    Code:
    [COLOR=#000000][COLOR=#007700]    [/COLOR][COLOR=#FF8000]//    ****** MASTER DATABASE SERVER NAME AND PORT ****** 
        //    This is the hostname or IP address and port of the database server. 
        //    If you are unsure of what to put here, leave the default values. 
    [/COLOR][COLOR=#0000BB]$config[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'MasterServer'[/COLOR][COLOR=#007700]][[/COLOR][COLOR=#DD0000]'servername'[/COLOR][COLOR=#007700]] = [/COLOR][COLOR=#DD0000]'localhost'[/COLOR][COLOR=#007700]; 
    [/COLOR][COLOR=#0000BB]$config[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'MasterServer'[/COLOR][COLOR=#007700]][[/COLOR][COLOR=#DD0000]'port'[/COLOR][COLOR=#007700]] = [/COLOR][COLOR=#0000BB]3306[/COLOR][COLOR=#007700]; 
    
        [/COLOR][COLOR=#FF8000]//    ****** MASTER DATABASE USERNAME & PASSWORD ****** 
        //    This is the username and password you use to access MySQL. 
        //    These must be obtained through your webhost. 
    [/COLOR][COLOR=#0000BB]$config[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'MasterServer'[/COLOR][COLOR=#007700]][[/COLOR][COLOR=#DD0000]'username'[/COLOR][COLOR=#007700]] = [/COLOR][COLOR=#DD0000]'root'[/COLOR][COLOR=#007700]; 
    [/COLOR][COLOR=#0000BB]$config[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]'MasterServer'[/COLOR][COLOR=#007700]][[/COLOR][COLOR=#DD0000]'password'[/COLOR][COLOR=#007700]] = [/COLOR][COLOR=#DD0000]''[/COLOR][COLOR=#007700];][/COLOR][/COLOR]


    Instead of localhost, you would put the IP.

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools <- awesome site for html/css help

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...