OnlineCheater Posted February 1, 2016 Share Posted February 1, 2016 Hey everyone, I was just wondering if it was possible for me to create a database ( MySQL) in my own computer which is working with windows 10. So then I would use it to save the data related to MTA scripts from my home server... Could you just tell me how can I do this please, I've been checking this: https://wiki.multitheftauto.com/wiki/DbConnect So what do I have to add as Required Arguments? I mean for example: dbtype = "mysql"dbname = "name of the db" dbhost = "should i enter my home IP adress? where do i get this host" dbuser = "username? where can i find the username? which one? i don't understand this" dbpw = "password? same way, i don't understand where can i find this password" servconnec = dbConnect( dbtype, dbname,dbhost,dbuser,dbpw ) That's all I need to know, I hope it's possible to do and if there's a tutorial anywhere, please inform me about it. Thanks in advance! Link to comment
KariiiM Posted February 1, 2016 Share Posted February 1, 2016 Yes it's possible, to host MySQL in local, use one of some programes which they supports PHP and MySQL so you can control your data. I suggest you to use XAMPP it contains about all these features. About how to open a connection to MySQL database, you've to use dbConnect function the usage of it should be like that, local connection = dbConnect("mysql", "dbname= myDbName; host= 127.0.0.1; port= 3306","root","","share=1") Link to comment
OnlineCheater Posted February 1, 2016 Author Share Posted February 1, 2016 Alright thanks, I'm currently trying to use XAMPP's MySQL so when I click on the MySQL Admin button of the Control panel, http://localhost/phpmyadmin/ opens but there's nothing, just a white screen. There should be a content but there's nothing. How can I fix this? Link to comment
KariiiM Posted February 1, 2016 Share Posted February 1, 2016 Alright thanks, I'm currently trying to use XAMPP's MySQL so when I click on the MySQL Admin button of the Control panel, http://localhost/phpmyadmin/ opens but there's nothing, just a white screen. There should be a content but there's nothing.How can I fix this? If I am not wrong XAMPP doesn't works if skype is running, check XAMPP's logs to get where's the issue exists. Edit: next time try to post a screenshot Link to comment
stevensalvaro Posted February 5, 2016 Share Posted February 5, 2016 Xampp , are you just start MySQL and Apache2 ? Link to comment
stevensalvaro Posted February 5, 2016 Share Posted February 5, 2016 I can help you if you need some help just contact me on facebook @[email protected] Link to comment
sheenidgs Posted February 5, 2016 Share Posted February 5, 2016 Make sure your Apache and MySQL is running. Open your XAMPP Control Panel Link to comment
KariiiM Posted February 5, 2016 Share Posted February 5, 2016 And make sure Skype is not running. Link to comment
OnlineCheater Posted February 5, 2016 Author Share Posted February 5, 2016 It's ok guys don't worry I found another way to use phpMyAdmin, it's EasyPHP Link to comment
stevensalvaro Posted February 6, 2016 Share Posted February 6, 2016 solved ? idk if it's work because mta must call mysql to get database table Link to comment
OnlineCheater Posted February 6, 2016 Author Share Posted February 6, 2016 solved ? idk if it's work because mta must call mysql to get database table I successfully connected a script to the db table created on phpMyAdmin It worked! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now