install mangodb in cmd while creating path its showing error - sqlcmd

C:\Program Files\MongoDB\bin>mongod --directoryperdb --dbpath C:\Program Files\MongoDB\data\db --logpath C:\Program Files\MongoDB\log\mongod.log --logappend --rest --install
Error parsing command line: unrecognised option '--rest' try 'mongod --help' for more information
C:\Program Files\MongoDB\bin>mongod --directoryperdb --dbpath C:\Program Files\MongoDB\data\db --logpath C:\Program Files\MongoDB\log\mongod.log --logappend --rest --install
tried to install monogodb in cmd and couldnt

Related

Apply failed: Couldn't copy file "C:\Program Files\IDA Pro 8.0\python\3\PyQt5\python_3.9\sip.pyd

When I run idapyswitch.exe, I encounter this information
Checking installs from "Python Software Foundation"
Checking "Python 3.10 (64-bit)" (3.10)
Found: "C:\Program Files\Python310\" (version: 3.10.5 ('3.10.5150.1013'))
Checking "Python 3.9 (64-bit)" (3.9)
Found: "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python39_64\" (version: 3.9.7 ('3.9.7150.1013'))
Checking "Python 3.10" (3.10)
Found: "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2800.0_x64__qbz5n2kfra8p0" (version: 3.10.10 ('3.10.10150.1013'))
Ignoring unusable AppStore Python "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2800.0_x64__qbz5n2kfra8p0\python3.dll"
IDA previously used: "C:\Program Files\Python310\python310.dll" (guessed version: 3.10.5 ('3.10.5150.1013')). Making this the preferred version.
The following Python installations were found:
#0: 3.10.5 ('3.10.5150.1013') (C:\Program Files\Python310\python3.dll)
#1: 3.9.7 ('3.9.7150.1013') (C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python39_64\python3.dll)
Please pick a number between 0 and 1 (default: 0)
1
Applying version 3.9.7 ('3.9.7150.1013')`
and it said permission denied
Apply failed: Couldn't copy file "C:\Program Files\IDA Pro 8.0\python\3\PyQt5\python_3.9\sip.pyd" to "C:\Program Files\IDA Pro 8.0\python\3\PyQt5\sip.pyd": Permission denied
I'm using IDA 8.0 and Python 3.10.10
I have pick number 0 and it still prompt the same error. How can i fix this

C Programming fatal error my sql.h no file or such directory on code blocks

I'm unable to use mysql on C when I do #include <mysql.h> or #include "mysql.h". Every time I try to run this program, I get a fatal error.
I put these as my linker settings to add the sql library :
C:\Program Files\MySQL\Connector C++ 8.0\libmysqlclient.so
C:\Program Files\MySQL\MySQL Server 8.0
also this is my search directories:
C:\Program Files\MySQL\Connector C++ 8.0
C:\Program Files\MySQL\MySQL Server 8.0
Any idea how to make codeblocks work with this?
Thanks and I'll keep searching too.
In looking for the answer, I found it. So instead of doing what I did in the link and search directories, instead do this:
Linker settings:
"C:\Program Files\MySQL\MySQL Server 8.0\lib\libmysql.lib"
"C:\Program Files\MySQL\MySQL Server 8.0\lib\mysqlclient.lib"
Search Directores:
"C:\Program Files\MySQL\MySQL Server 8.0\lib"
"C:\Program Files\MySQL\MySQL Server 8.0\include"
This allowed me to compile the code with no errors

Running mysql_ssl_rsa_setup generates an error

In Windows Server 2008, I was running the program with following command:
E:\Program Files\MySQL\MySQL Server 5.7\bin>mysql_ssl_rsa_setup --datadir="E:\Program Files\MySQL\MySQL Server 5.7\SSL"
It returns this error:
Unable to load config info from "C:\Program Files (x86)\Common Files\ibm\icc\cimom\bin\openssl.cnf"
2018-01-17 10:45:51 [ERROR] Error generating ca_key.pem and ca_req.pem
The user account has full control to the path. Please help out.

MySQL said: 2002 - No connection could be made because the target machine actively refused it

Also the error message in xampp control panel states:
Found Path: "C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld" --defaults-file="C:\Program Files\MySQL\MySQL Server 5.5\my.ini" MySQL
20:08:20 [mysql]
Expected Path: c:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini mysql
Can you help as this is a fresh install of xampp v.3.2.1
I followed the instructions on install I don't know why it's not working.
Do I need to change the path in the httpd.conf file in mysql for it to find the path?
It looks mysql is already installed in your system in the above mentioned "Found Path". If already installed mysql is not needed, uninstall it. Now try to run our new Xampp mysql server, it will run. Otherwise you can run the xampp mysql using "mysql_start" batch file which is under XAMPP folder.

reset root mysql on windows

Following the recommended instructions for resetting root at link and the other recommendations here at stackoverflow. I tried to reset my root pass both ways suggested, with and without the --defaults-file option
First I tried.
"C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld" –init-file=C:\\mysql-init.txt --console
Error:
C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld: Too many arguments (first extra is 'ûinit-file=C:\mysql-init.txt').
Next I tried
"C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld" --defaults-file="C:\\ProgramData\\MySQL\\MySQL Server 5.5\\my.ini" MySQL55 –init-file=C:\\mysql-init.txt --console
Error:
C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld: Too many arguments (first ex
tra is 'MySQL55').
'Too many arguments' makes me think my syntax is the problem
Look at your command lines again and manually delete the LONG HYPHENS. Then type the hyphens in again manually.
"C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld" –init-file=C:\mysql-init.txt --console
should be
"C:\Program Files\MySQL\MySQL Server 5.5\bin\mysqld" --init-file=C:\mysql-init.txt --console
(notice the hyphens before init-file)
Refer to mysqld options
I uninstalled the MySQL server.
I went to the mysql folder, and erased everything (the folder too).
Reboot the PC.
Reinstall the MySQL.
Set the new password.