Ask not what osTicket community can do for you - ask what you can do for osTicket community

Go Back   osTicket Forums > osTicket 1.6.x > Installation and Setup Help

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-11-2012, 09:49 AM
gabeBU gabeBU is offline
Junior Member
 
Join Date: Jun 2012
Posts: 7
Default OS-Ticket: mysql-Password problems

Hello Guys

I want to setup an osticket-system with XAMPP. I allready made a database for the system and made a user called "osticket". For the test i just leave the password blanc. The failure message is: please set a password. I set a password then it comes: "Cannot connect to the database"....

what did i wrong?

PS: Sorry my english is not very good^^
Reply With Quote
  #2  
Old 06-11-2012, 11:22 AM
ntozier's Avatar
ntozier ntozier is offline
Moderator
 
Join Date: Jan 2010
Location: NH USA
Posts: 1,794
Default

Set a password for the MySQL user. Use said password in your test.
__________________
ntozier
OST Forum Mod - tmib.net - System Admin
Reply With Quote
  #3  
Old 06-12-2012, 02:18 AM
gabeBU gabeBU is offline
Junior Member
 
Join Date: Jun 2012
Posts: 7
Default

I set the password....but it cannot connect. Here's the error log:

Warning: mysql_connect() [function.mysql-connect]: php_network_getaddresses: getaddrinfo failed: Der angegebene Host ist unbekannt. in C:\xampp\htdocs\include\mysql.php on line 26

Warning: mysql_connect() [function.mysql-connect]: [2002] php_network_getaddresses: getaddrinfo failed: Der angegebene Hos (trying to connect via tcp://%:3306) in C:\xampp\htdocs\include\mysql.php on line 26

Warning: mysql_connect() [function.mysql-connect]: php_network_getaddresses: getaddrinfo failed: Der angegebene Host ist unbekannt. in C:\xampp\htdocs\include\mysql.php on line 26
Reply With Quote
  #4  
Old 06-12-2012, 09:46 AM
ntozier's Avatar
ntozier ntozier is offline
Moderator
 
Join Date: Jan 2010
Location: NH USA
Posts: 1,794
Default

have you granted permissions to the MySQL user on the database?

at cli it would be something like:
Code:
grant all privileges to username@localhost identified by 'password';
flush privileges;
If your MySQL server is not on the same host as your webserver (OSTicket installation) you will have to tell MySQL that the web server is allowed to connect.
__________________
ntozier
OST Forum Mod - tmib.net - System Admin
Reply With Quote


Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:42 AM.