Syslog-ng is installed to manage server logs in a unified manner. The installation method is found online. Some problems need to be solved now;
1. The log server can synchronize the log files on a daily basis, but the log files you want cannot be synchronized to the server because you need to customize the log files. Now, I have posted the configuration documents and hope to learn from them.
Install syslog-ng
Service installation:
Yum install GCC *
CD/usr/src
Wget http://www.balabit.com/downlo
Thoroughly uninstall MySQL 1. Delete the programs added to the control panel. 2. delete my files in the MySQL folder. INI file. If the backup is good, you can directly delete all the folders. 3. Start-> Run-> regedit. Check the Registry to delete the files without the HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet001 \ Services \ Eventlog \ Application \ MySQL directory. Delete the HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet002 \ Services \
the service.2. Control Panel --- uninstall MySQL and delete c: \ ProgramFiles \ mysql directory.3.This is the most critical step. The password cannot be modified only in the previous two steps, because MySQL still has files, that is, in c: \ Documents andSettings \ All Users \ ApplicationThe MySQL folder in data. The file is not cleared, which is the root cause of the old password in MySQL reinstallation. Delete the MySQL folder.4.Check whether the my. ini file exists in the C: \ Windows direct
:. Net has an EventLog class that is directly associated with System Event Logs.A simple one:EventLog. writeentry ("logsource", "this is a test log .");You can write an event to the system.However, it is a little bit of trouble to make good use of it. First, the above method will write an event log under the system application, and the default is information type. This is not conducive to management. You can check the log in the management tool to fin
Iproduct factorymethod (){ Return New Producta ();}} /// /// Business type of B type product /// Public Class Creatorb: acreator{ Public Override Iproduct factorymethod (){ Return New Productb ();}}
Client call:
Acreator create= NewCreatora ();Iproduct Product=Create. factorymethod ();Product. behavior ();
Example of adding terrylee
The original error has been corrected.
View code
Namespace Designpatternlab. factorymethodpackage{ Class Factorymeth
to hide the file visibility ).
Delete a MySQL folder
3. This step is very important. No matter how I unmount MySQL to clear the residual files, I still need to enter the original password. Then I tried to find the registry and it was valid after clearing it.
Delete registry data and use Regedit to delete the following files:
Reference
HKEY_LOCAL_MACHINE/system/controlset001/services/EventLog/applications/MySQL
HKEY_LOCAL_MACHINE/system/con
understand what the framework already provides.
The system. Diagnostics. debug, system. Diagnostics. Trace and system. Diagnostics. EventLog classes provideProgramAll tools to create diagnostic information. The functions of the first two classes are basically the same. Apart from the differences, the trace class is controlled by the preprocessing operator trace, while the debug class is controlled by the debug preprocessing operator. When you devel
can useMysqld-nt-removeUninstall.
The specific method is as follows:
1. Check whether mysql is in the service. If yes, stop the service.
2. Run the Add/delete program on the Control Panel to uninstall mysql.
3. Open the registry after uninstalling and view the key values under HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services. If there is a mysql key value (mysql, mysqladmin), delete it.
4. Restart and delete the residual installation directory of mysql (view the service, and mysql is
password was incorrect.
Solution:1. Management Tools --- stop the Mysql service in the service.2. Control Panel --- uninstall Mysql and delete the C: \ Program Files \ MySQL directory.3. This isKeyIn one step, the password cannot be modified only in the previous two steps, because MySQL still has files, that is, in C: \ Documents ents and Settings \ All Users \ Application Data (Application Data is a hidden folder) in the MySQL folder, this file is not cleared is the root cause of the old pass
\ Services. If there is a mysql key value (mysql, mysqladmin), delete it;Restart and delete the residual directory of mysql installation (check that mysql is not available in the Service );Reinstall mysql. After installation, do not run Server Instance Configuration wizard. After restart, run the wizard in the Start Menu.PS: A Reference Method---------------------------------------------Msyql installation to the last step start service error Solution1. In the control panel, delete mysql first.2
(){ servicebase[] servicestorun;servicestorun = newservicebase[]{ new fucker () }; servicebase. Runservicestorun /span> After creating the Fucker.cs, open the Design view and drag a eventlog from the toolbox, which is in the components category. Note that you cannot use Windows Form controls, or the compilation will explode. If your service wants to pop up the message in the UI, you can only put in the build folder a spe
. Uninstall c: \ mysql \ bin \ mysqld-nt -- remove under DOS
// C: \ mysql \ bin \ is the specific path. to completely delete mysql, end the mysql process and then uninstall mysql.
The following two DOS commands are attached:
Start Mysql: net start mysql
Install: c: \ mysql \ bin \ mysqld -- install // modify the specific path
3. Delete the residual mysql files directly.
If you accidentally delete all mysql files and have not previously executed the above uninstall function, you can use the foll
directory 3. query mysql in the registry (regedit) 4. query MySQL on disk C, delete all 5. reinstallNote that the registry cmd-> regedit1. HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Services/Eventlog/Application/MySQL Directory2. HKEY_LOCAL_MACHINE/SYSTEM/ControlSet002/Services/Eventlog/Application/MySQL Directory3. HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Eve
directory3. query mysql in the registry (regedit) and delete all4. query MySQL on drive C and delete all5. just reinstall it.Note that the registry cmd-> regedit1. HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Services/Eventlog/Application/MySQL Directory2. HKEY_LOCAL_MACHINE/SYSTEM/ControlSet002/Services/Eventlog/Application/MySQL Directory3. HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/
:00000001Disable last access timestamp[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\FileSystem]"Ntfsdisablelastaccessupdate" =dword:00000001disabling hibernation[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\power]Various keys and values is set according to the version of Windows detected.Disable crash dump dump[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl]"CrashDumpEnabled" =dword:00000000"LogEvent" =dword:00000000"Sendalert" =dword:00000000Disab
HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Services/Eventlog/Applications/MySQL
HKEY_LOCAL_MACHINE/SYSTEM/ControlSet002/Services/Eventlog/Applications/MySQL
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Eventlog/Applications/MySQL
If yes, delete all! (Tip: Use F3 to search for "mysql" Cyclically ")
(5) If the mysql content in the task manager is also deleted
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.