Sphinx searchd issues when running on Windows Server - mysql

I am using sphinx to index my content. I used it in my development environment (xampp) and it worked fine. Now I took it to the server (same config file), and it is giving me trouble.
I have a VPS Windows 2008 server with Plesk panel. I am the administrator. the problem is that when i run the indexer tool, it tells me that it found 0 docs and indexing 0 docs. So it seems like it is working fine as far as accessing the database, but it just doesn't find any docs. Does anyone have any ideas, I spent a whole day playing with the configuration and database with no success.
Thanks.

Well maybe the database table that sphinx is trying to index is empty?
Either way would suggest adding debug command line switches when you run indexer. Eg --verbose, --print-queries etc. They will probably give you a better clue where the problem lies.

Related

How do I restart a MySQL local instance in MySQL workbench?

I've recently gotten into databases for a class I'm currently in, and I need a little bit of help. I've managed to create a database, and even populate a table with data which I was then able to grab from a node.js project I've made in Atom. Wonderful! When I went to shut it down, all seemed normal but now it won't restart. As in, when I'm in the homepage section of MySQL I double click the local instance I made(I can only assume this is opening the connection to the local instance where my database is stored) but it won't start up. I don't know what I'm doing wrong. Here is an image of the error I'm getting. I can only assume it's because the actual server isn't on but I don't know how to turn it on.
Any help is much appreciated!
Thank you!
As according to the users ikiK, P.Salmon, and Y4glory the issue I was having was that I wasn't actually turning on the server. I was able to do so by going through my Window's Services application, finding the MySQL server and starting it there instead of trying to do so through the workbench.
Once again, thank you to those who commented as that was really helpful!!
I have tried every other way mentioned here and other related posts, but it did not solve my problem, the service just wont start, but the below approach with the mysql-installer did.
For this to work you need to have your installer which you have used earlier to install MySql.
Start your windows mysql installer. For me it was "mysql-installer-community-8.0.20.0"
Then remove/uninstall the SQL Server and remove all configurations
Manually delete the SQL Server folder from "C:\Program Files\MySQL\MySQL Server 8.0."
Start your mysql installer again and install the SQL Server again
You can check now that the MySqL Server has started.
Hope it helps someone.

Run phpMyAdmin on its own user

I'm having this issue listed here and I was recently told that it is impossible to resolve this issue -- so I had the idea of running phpMyAdmin on its own user (other than Apache's user). I'm running Ubuntu with Apache, is this possible?
Thanks!
It's not possible because phpMyAdmin is not a process, it's a series of scripts interpreted by a process (either by mod_php running inside Apache or a separate PHP process like php-fpm).

MySQL local network query issue

I work with a software developed in Visual Basic 6 which MySQL is the database. Our application works in a local network and always worked fine, but just one costumer is having an issue. The question is when the consultant does something in our application the MySQL database takes too much time to search or stops to work, but when I'm on the machine that is installed MySQL (5.5) it is working.
I already have tried some tips, changing my.ini file lines, grant all command, reinstallation and etc.
Maybe the problem could be the local network? Any advice?
I have to apologize for my english if something don't look right,
Regards.
Well, I solved my problem, It was easier than I thought.
I had to go in Performance Options from Windows and change the Virtual Memory, just this.

How do i get MS EXCEL to Connect to MYSQL Database

How Can i get Microsoft Excel 2010 to Connect to MYSQL Server (5.6.12)
I installed MYSQL as a WAMP installation
Windows 7 Ultimate 64bit
MYSQL 5.6.12
Apache 2.4.4
PHP 5.4.16
this should be straight forward, but i've obviously missed something
Now.. When i open Excel 2010
i then go to "Data"
i then go to "From Other Sources"
i then select "From SQL Server"
I'm then presented with the Data Connection Wizard
I have the Log on Credentials (that's not an issue)
I'm Logging on with "Use the following User Name and Password"
i require the SERVER NAME
but i keep getting this error
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied
I understand the concept of what needs to happen, that being, i need to specify the connection path of MYSQL to Excel
Now.. so far i have done this...
Ensured that the WAMP Server was ONLINE and the Service was STARTED
obviously the default server is localhost that does not work, but then again on my machine that only brings up the WAMP page (so that's Understandable)
i usually access MYSQL via PhpMyAdmin the URL for the Login page is
http://localhost/phpmyadmin/
i tried entering that (that doesn't work either, but then again, i understand that is only the front end)
so..
i tried typing in MYSQL , mysql , MYSQL5.6.12 , mysql/mysql5.6.12
none of that worked
the MYSQL install path is
C:\WAMP\bin\mysql\mysql5.6.12
so.. Logically if i gave that to Excel, it should find it, But it didn't
I researched the Net and everything Either says Use the Wizard , but doesn't go into detail on the Server Name, one place said to install Microsoft Connector, I have done so.. it didnt' help
I have tried the Server Name as localhost , http://localhost , 127.0.0.1 didn't work
Using MYSQL CLI i entered "status;" and used the connection name localhost via TCP/IP didn't work
i went into MYSQL buddy and i found this
You are connected to MySQL 5.6.12 with the user Martin.Kuliza#localhost.
i tried this also, didn't work
i noticed the URL on the command line title as being
C:\Windows\System32\cmd.exe - C:\wamp\bin\mysql\mysql5.6.12.bin\mysql.exe -u
i entered all this... didn't work
i entered the part Starting from C:\wamp.... Didn't work
I've tried entering wamp, WAMP, Apache, APACHE, apache
I've tried dozens of combinations
I've tried finding the config file for connector in case that had something to do with it (couldn't find it)
i've tried looking at the config.inc.php file for clues,
I'm stuck and need some help (for this seemingly simple problem)
it's just a Connection Wizard and i'm honestly gobsmacked that i actually need to ask the forum for help, but, Sadly i do
Have you done this?
http://office.microsoft.com/en-001/excel-help/connect-to-a-mysql-database-HA104019820.aspx
Before you can connect to a MySQL database, you need the MySQL
Connector on your computer. To install the MySQL Connector
(Connector/Net), go to http://go.microsoft.com/fwlink/?LinkId=278885
and download Connector/Net 6.6.5 for Microsoft Windows. The driver
bit-ness needs to match the Microsoft Power Query for Excel add-in
installation (32-bit or 64-bit).
I FOUND A SOLUTION...
Kudos to HongTAT for keeping me on the right path....
(Even though i did do all the initial stuff that you posted, before i actually posted the question, The Act of you Posting it, Got me Looking at it a little deeper...
One thing led to another and i found the solution... Thank you
i suspect some sort of incompatibility issue must have been at fault here
i noticed that Power Query 64 bit would not install on my 64bit system
instead Power Query installer provided an Error that simply stated to the effect of:
since office is 32bit you can't install 64bit Power Query
but, i did install Connector/ODBC and Connector/Net as 64bit
perhaps there was something in that configuration that didn't mesh well with each other.
Also, Aparently "bit-ness" is a confusing term that is supposed to mean ( Ensure that that bit instruction set of the of the ODBC Connector Matches the bit instruction set of Power Query in Excel)
In actual fact you don't need Power Query or Visual Studio for that matter
However i can see the benefit of power Query, at this stage
WHAT I DID...
I uninstalled all traces of Microsoft Visual Studio from Add/Remove Programs
I Uninstalled all Traces of Visual C++ Redistributable from Add/Remove Programs
I Uninstalled Power Query from Add/Remove Programs
I Uninstalled MYSQL Connector/ODBC from Add/Remove Programs
I Uninstalled MYSQL Connector/Net from Add/Remove Programs
i left the WAMP Installation and MYSQL Intact
i conducted a Windows Update
i restarted the system
i then downloaded the following and installed it
http://dev.mysql.com/downloads/file.php?id=450946
Now.. Even though this Package installation is the same thing as installing it 1 by 1
i found that by doing a "CUSTOM INSTALLATION"
and installing all products EXCEPT FOR MYSQL SERVER
i was able to connect via the connector/net to the MYSQL Database right away
LASTLY i installed Power Query for Excel (since that was the whole point to begin with)
and this time it connected right away and Worked Perfectly
the Server Name was localhost
as i suspected
and the credentials were correct as i suspected
the only thing was that i had to set it up without Encryption of password
i got a message saying something like My Version of Office did not support encryption
or something to that effect
but, i connected without encryption and it worked perfectly
PROBLEM SOLVED
I NOW DEEM THIS QUESTION TO BE RESOLVED
THANKYOU TO HongTat
Did you try googling this before you posted your question? Because if you spent at least 10 seconds searching the internet, you would have found the answer to your question.
http://office.microsoft.com/en-us/excel-help/connect-to-a-mysql-database-HA104019820.aspx

MySQL not connecting with PHP

I installed MySQL server and everything worked fine in command line. I worked connecting MySQL to my ASP.NET application and there is no problem at all. But when I try to connect MySQL to PHP applications I am unable to connect. When I installed PHPMyAdmin I am getting error #2002 Connot log in to thie MySQL server
I browsed all the night for this error and none of Google's results helped me! :(
Anybody can you please tell me where the problem is at? I believe I must change my PHP.ini file settings in order to connect to MySQL. Anybody please help me.
There are a lot of things that can cause this type of issue. Did you make sure that you have added php-mysql drivers to your sever. Since you said your using ASP i will assume that you are using windows servers. Make sure that you also are allowing that user to connect via localhost or what ever ip the PHP is on.
In php there are to standered ways of connecting to a MySQL database.
php-mysql(is going to be depercated soon).
php-mysqli(OOP version of the php-mysql with lots of features).
With out one of these php will be unable to work with a MySQL database. I am not sure if phpmyadmin works with both drivers or just one of them It could be throwing a die("message") Just to let you know it is not working instead of throwing a more complex php error. You may want to see if you can incress error reporting.
You can check if your php installastion has the mysql driver by looking in your php.ini and also checking with.
phpinfo();
It is almost always about config. https://bbs.archlinux.org/viewtopic.php?id=90133