Where is the my.cnf located on a Vista? [closed] - mysql

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
Would anyone know where I could find the my.cnf file(s) on Vista? I am using XAMPP (C:/xampp) and I tried searching within that directory, but I can't seem to find it.

my.cnf or my.ini is probably in C:\xampp\mysql\
If not there, you can try the following, which I found here:
To find these MySQL config files, do this:
Go to Folder Options: in any folder, go to the top horizontal main text menu >> Tools >> Folder Options
Enable 'View Hidden Files and Folders', and 'View Protected System Files', save & exit
Go to C Drive, locate and rename the my.ini file, which will now be visible. Rename it as my.ini.bak
Go to /xampp/msql/bin - locate and rename my.cnf, to my.cnf.bak
If there is no file my.cnf, but there is one called my - then that is the one you want. Rename it to my.cnf.bak

Related

Nginx resource interpreted as Document but transferred with MIME type application/octet-stream [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I have a Debian 9 server with nginx installed.
I also installed ZendFramework 3.
Now I wanted to change the default document root, which is /var/www/html, to my Zend Project.
My index file is located in: /var/www/example.com/module/Application/view/application/index/index.phtml
My /etc/nginx/sites-enabled/default looks like this:
server {
listen 81 default_server;
listen [::]:81 default_server;
root /var/www/example.com/module/Application/view/application/index;
index index.phtml index.php;
}
When I visit the site, the index.phtml gets downloaded and Google-Chrome outputs this in the console:
Resource interpreted as Document but transferred with MIME type application/octet-stream
Do I have an error in a config file? How can I fix this?
Nginx doesn't recognise the mime type of the .phtml file extension, so you need to add it to your config.
The file to add it to is usually found at /etc/nginx/mime.types

How to download entire front-end of a website [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I want to download all the html, css and js files of the entire website in one click. I tried right-click and view source code but then I have to copy paste each page and create folder myself so its very tedious. Is there any open source software that helps do that or do i have to code it myself?
wget is your friend here and it works on windows, mac and linux.
wget -r -np -k http://yourtarget.com/even/path/down/if/you/need/it/
-r is recursive
-np (do not follow links to parent directories)
-k to make links in downloaded HTML or CSS point to local files
Other useful options:
-nd (no directories): download all files to the current directory
-e robots.off: ignore robots.txt files, do not download robots.txt files
-A png,jpg: accept only files with the extensions png or jpg
-m (mirror): -r --timestamping --level inf --no-remove-listing
Right Click > Save Page As
Will download all css and js/html.

MySQL: Source Error 2? No File Found [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
When I tried to source for a particular .sql file, namely 'registrar.sql', the following error is displayed:
Failed to open file 'registrar.sql', error: 2
I know that this means the below error:
#define ENOENT 2 /* No such file or directory */
However, I am not sure how to be more specific as I have tried entering 'source registrar.sql' and I have tried entering the absolute path. Now it is possible I am just entering the absolute path incorrect which is where I could use some help. Here is the path in properties in windows.
C:\Program Files\MySQL\MySQL Server 5.1\bin
File name is: registrar.sql
Any help on this would be appreciated.
Try like this:
mysql> source c:/dumps/mydatabase.sql
That is, use forward slash instead of back slash
You need to restart mysql if you have copied file after starting mysql server.
also if you have space in file or folder name you should use quotes.
I think that the sql process might not have read access to your directory anyway. In which case, you might have to copy the sql file to other accessible folder and tell mysql the absolute path.
Remove spaces in the folder names of the path, It worked for my mac path.
(Eg: change the folder name MySQL Server 5.1 to MySQLServer5.1)

Use mysql drivers with ejabberd without recompilation [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have all the mysql .beam files needed for ejabberd. And I installed ejabberd via apt.
But when I try to copy those .beam files into /usr/lib/ebin directory and run ejabberd it echoes to ejabberd.log the following:
=INFO REPORT==== 2012-05-31 09:46:02 ===
application: ejabberd
exited: {bad_return,{{ejabberd_app,start,[normal,[]]},
{'EXIT',database_module_missing}}}
type: temporary
What I'm doing wrong?
What's the correct way of adding mysql drivers to ejabberd apt installation?
BEAM files used by ejabberd are located in a different place — try putting your files there.
As a side note: are you sure those BEAM files are really OK? Erlang is not too permissive when it comes to binary portability, so it's always advised to recompile the necessary code using the same release of Erlang as will run ejabberd on the target machine.
Check which triggers this ERROR is staightforward. It checks if hardcoded list of modules is in Erlang VM path. Make sure that odbc files are there and that they have proper file ownership. Required files are:
check_database_module(odbc) ->
check_modules(odbc, [odbc, odbc_app, odbc_sup, ejabberd_odbc, ejabberd_odbc_sup, odbc_queries]);
check_database_module(mysql) ->
check_modules(mysql, [mysql, mysql_auth, mysql_conn, mysql_recv]);
check_database_module(pgsql) ->
check_modules(pgsql, [pgsql, pgsql_proto, pgsql_tcp, pgsql_util]).

Fedora 14 LAMP problem - forbidden [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I just have installed Fedora 14 and install apache ( and run it ), php and mysql.
I put in /var/www/html my folder peki with php pages, but when I try to see in browser (http://localhost/peki/info.php) it is FORBIDDEN (You don't have permission to access /peki/info.php on this server). I started like superuser (service httpd start, reason for that is when I was other user starts FAILED ). How to make this work ?
You have to go into SELinux Management and Disable the "System Default Enforcing Mode", and right below that, you want to change the "Current Enforcing Mode" to Permissive, and leave "System Default Policy Type" on targeted.
You have to change the owner permission for the www folder to your user's because the default owner is root.
Here:
First fire up your terminal
Then cd to www folder
then use chown function to change owner to your username.....find out more about chown and chmod by googling them.
You're Welcome
Check if SELinux is enabled: getenforce.
Check if apache run like apache user: ps aux | grep http.
apache can read and execute /var/www/html/peki ?
apache can read and execute /var/www/html/peki/info.php ?